/*
  ASR Operational Systems Demo Styles
  -----------------------------------
  This stylesheet supports a public-safe ASR proof asset.

  Purpose:
  - Present workflow, records, reports, invoices and admin patterns.
  - Avoid behaving like a second ASR website.
  - Keep the visual system calm, practical and aligned with ASR proof language.

  The main ASR website owns sales, services, case studies and contact journeys.
*/

:root {
  --ink: #10254b;
  --muted: #5d6a7d;
  --brand: #a92820;
  --brand-dark: #7e1d18;
  --gold: #d99a25;
  --paper: #fff9ec;
  --soft: #f7f1e4;
  --line: #d8dce5;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(16, 37, 75, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}

a { color: var(--brand); }
img { max-width: 100%; display: block; }

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

.narrow { max-width: 780px; }

/* Header/footer aligned to the ASR public ecosystem */

.site-header {
  background: var(--brand);
  border-bottom: 3px solid var(--gold);
  color: var(--white);
  padding: 0.5rem 0;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-brand,
.header-cta {
  flex: 0 0 auto;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 0.5rem;
  background: var(--white);
  padding: 0.15rem;
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-name {
  color: var(--white);
  font-weight: 800;
}

.brand-area {
  color: var(--paper);
  font-size: 0.9rem;
}

.main-nav {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--gold);
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border-radius: 0.35rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.asr-card-logo {
  width: min(360px, 90%);
  margin: 0 auto 24px;
}

.site-footer {
  margin-top: 0;
  font-size: 0.95rem;
  background: var(--ink);
  color: var(--white);
  padding: 0;
}

.footer-strip {
  background: var(--paper);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  overflow: hidden;
}

.footer-strip img {
  width: 100%;
  height: auto;
  max-height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 2rem;
  padding: 2rem 0 1.5rem;
}

.footer-brand-block {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.footer-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 0.45rem;
  background: var(--white);
  padding: 0.2rem;
  flex: 0 0 auto;
}

.footer-brand-block p {
  margin: 0.25rem 0;
  color: rgba(255,255,255,0.85);
}

.footer-links {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.site-footer a,
.footer-links span {
  color: rgba(255,255,255,0.86);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 0.85rem 0 1.15rem;
  text-align: center;
  color: rgba(255,255,255,0.78);
}

.footer-bottom p {
  margin: 0.2rem 0;
}

/* Current Render/mobile-safe header behaviour */
@media (max-width: 900px) {
  .site-header {
    padding: 0.85rem 0;
  }

  .header-inner {
    min-height: 0;
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
  }

  .header-brand {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .brand-link {
    justify-content: center;
    gap: 0.65rem;
  }

  .brand-logo {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 auto;
  }

  .brand-text {
    text-align: left;
    max-width: 220px;
  }

  .brand-name {
    font-size: 1rem;
    line-height: 1.1;
  }

  .brand-area {
    font-size: 0.82rem;
  }

  .main-nav {
    width: 100%;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.65rem;
    padding: 0.2rem 0;
  }

  .main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: var(--white);
    font-size: 0.86rem;
    line-height: 1;
    white-space: nowrap;
    background: rgba(255,255,255,0.08);
  }

  .main-nav a.active {
    background: var(--paper);
    color: var(--ink);
  }

  .header-cta {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header-button,
  .header-phone {
    width: min(100%, 320px);
    min-height: 44px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .brand-link {
    max-width: 100%;
  }

  .brand-logo {
    width: 44px !important;
    height: 44px !important;
  }

  .brand-text {
    max-width: 190px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-area {
    font-size: 0.78rem;
  }

  .main-nav {
    gap: 0.4rem;
  }

  .main-nav a {
    font-size: 0.8rem;
    padding: 0.33rem 0.48rem;
  }
}


/* Hero */
.hero {
  background:
    radial-gradient(circle at top right, rgba(217,154,37,.16), transparent 36%),
    linear-gradient(135deg, var(--paper), #fff);
  padding: 76px 0;
}

.hero-grid,
.workflow-grid,
.contact-band-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 680px;
}

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 0;
}

.badge-row span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.74);
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 800;
  font-size: .9rem;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  padding: 12px 20px;
  cursor: pointer;
}

.btn-secondary { background: var(--ink); }

.hero-card,
.card,
.note-card,
.form-card,
.success-card,
.detail-card,
.table-card,
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-card,
.note-card,
.form-card,
.success-card,
.detail-card,
.table-card {
  padding: 28px;
}

.brand-card {
  text-align: center;
  background: linear-gradient(180deg, #fff, var(--paper));
}

.asr-card-logo {
  width: min(360px, 90%);
  margin: 0 auto 24px;
}

.workflow-visual-card img {
  border-radius: 18px;
  margin-bottom: 20px;
}

.section { padding: 70px 0; }
.section-soft { background: var(--soft); }

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

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

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

.module-grid .card {
  padding: 20px;
}

.module-grid .card h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
}

.module-grid .card p {
  font-size: 0.95rem;
}

.card { padding: 26px; }

.icon-dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--brand);
  border-radius: 50%;
  font-weight: 900;
  margin-bottom: 12px;
}

.pill,
.status {
  display: inline-block;
  background: var(--paper);
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: .85rem;
}

.contact-band {
  background: #fff;
}

.contact-band-grid {
  background: linear-gradient(90deg, #fff9ec, #ffffff);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-band-grid img {
  border-radius: 22px;
  max-height: 240px;
  width: 100%;
  object-fit: cover;
}

.check-list { padding-left: 20px; }

.alert {
  background: #fff1f0;
  border: 1px solid #ffb5ad;
  border-radius: 18px;
  padding: 16px 20px;
  margin: 20px 0;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.details {
  display: grid;
  gap: 14px;
}

.details div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

dt { font-weight: 800; }
dd { margin: 2px 0 0; color: var(--muted); }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

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

.stat { padding: 20px; }
.stat strong { display: block; font-size: 2rem; }
.stat span { color: var(--muted); }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-bar a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}

.filter-bar a.active {
  background: var(--ink);
  color: white;
}

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

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

.inline-form { margin-top: 24px; }

/* Mobile layout refinements */
@media (max-width: 900px) {
  .hero-grid,
  .workflow-grid,
  .contact-band-grid,
  .card-grid,
  .stats-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .admin-header {
    flex-direction: column;
  }

  h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding: 56px 0;
  }

  .section {
    padding: 54px 0;
  }


  .hero-card,
  .note-card,
  .form-card,
  .success-card,
  .detail-card,
  .table-card,
  .contact-band-grid {
    padding: 22px;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 0.88rem;
  }
}


/* Workflow overview page */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
}

.step-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--brand-dark);
  font-weight: 900;
  margin-bottom: 14px;
}

.workflow-callout {
  display: grid;
  grid-template-columns: 1.3fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.table-card table tbody tr:hover {
  background: rgba(217, 154, 37, 0.08);
}

.detail-card {
  margin-top: 18px;
}


@media (max-width: 860px) {
  .timeline-grid,
  .workflow-callout {
    grid-template-columns: 1fr;
  }

  .workflow-callout .actions {
    justify-content: flex-start;
  }
}


/* Operational module skeletons */
.module-grid .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.module-grid .card .btn {
  margin-top: auto;
}

.breadcrumb {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.breadcrumb a {
  font-weight: 800;
  text-decoration: none;
}

.status-badge {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.86rem;
}

.detail-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
}

.helper-note {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 4px solid var(--gold);
  background: var(--paper);
  color: var(--muted);
}


/* ASR base layer additions */
.faq-card {
  margin-bottom: 1rem;
}

.faq-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}


.module-grid .card p + .btn {
  margin-top: 1rem;
}


.demo-notice {
  display: inline-block;
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(168, 116, 31, 0.35);
  border-radius: 999px;
  background: rgba(255, 248, 229, 0.85);
  color: #5f4214;
  font-size: 0.92rem;
  font-weight: 600;
}

form input[name="_csrf"] {
  display: none;
}


.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}

.reset-demo-form {
  margin: 0;
}


/* ============================================================
   ASR Ecosystem Alignment Pass v9
   Aligns the Operational Demo with asrweb.ie and the ASR manual.
   ============================================================ */

body {
  background: #fffdf7;
}

.site-header {
  background: var(--brand);
  border-bottom: 4px solid var(--gold);
}

.main-nav a {
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
}

.main-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--paper);
}

.asr-demo-ribbon {
  background: var(--paper);
  border-bottom: 1px solid rgba(16,37,75,0.12);
  color: var(--ink);
  font-size: 0.95rem;
}

.asr-demo-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.asr-demo-ribbon a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.hero {
  background: linear-gradient(135deg, #fffdf7 0%, #fff4d6 100%);
}

.card, .hero-card, .note-card, .timeline-card, .stat, .workflow-callout {
  border: 1px solid rgba(16,37,75,0.12);
  box-shadow: 0 12px 32px rgba(16,37,75,0.08);
}

.btn {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: rgba(16,37,75,0.22);
}

.section-heading h1, .section-heading h2, .hero h1, h1, h2 {
  letter-spacing: -0.02em;
}

.footer-inner {
  grid-template-columns: 1.5fr repeat(2, 1fr);
}

@media (max-width: 860px) {
  .header-inner, .asr-demo-ribbon-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ASR Ecosystem Alignment Pass v10
   Light visual lock so the operational demo reads as part of
   the main ASR site while staying focused on reports/records.
   ============================================================ */

body {
  background:
    radial-gradient(circle at 14% 0%, rgba(217,154,37,0.16), transparent 30rem),
    linear-gradient(180deg, #fffdf7 0%, #fff9ec 100%);
}

.site-header {
  background: var(--brand) !important;
  border-bottom: 4px solid var(--gold) !important;
}

.main-nav a {
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255,255,255,0.14);
  color: var(--paper);
}

.asr-demo-ribbon {
  background: var(--paper) !important;
  border-bottom: 1px solid rgba(16,37,75,0.16) !important;
}

.hero,
.section.alt,
main > .section:nth-of-type(even) {
  background: linear-gradient(135deg, #fffdf7 0%, #fff4d6 100%) !important;
}

.card,
.hero-card,
.note-card,
.timeline-card,
.stat,
.workflow-callout,
.table-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(16,37,75,0.14) !important;
  border-top: 4px solid rgba(217,154,37,0.78) !important;
  box-shadow: 0 14px 34px rgba(16,37,75,0.10) !important;
}

.btn,
.header-button,
button[type="submit"] {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

.btn-secondary {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: rgba(16,37,75,0.22) !important;
}

.eyebrow,
.kicker,
.status-badge {
  color: var(--brand-dark) !important;
}

.site-footer {
  background: var(--ink) !important;
}
