:root {
  --brand-primary: #c41e24;
  --brand-primary-dark: #9e161c;
  --brand-secondary: #111111;
  --brand-accent: #ffffff;
  --text-primary: #1c1c1c;
  --text-muted: #5c5c5c;
  --background-primary: #f7f6f4;
  --background-elevated: #ffffff;
  --border-subtle: #e4e1dd;
  --shadow-soft: 0 10px 30px rgba(17, 17, 17, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --focus-ring: 0 0 0 3px rgba(196, 30, 36, 0.35);
  --header-height: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--background-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--brand-primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-primary-dark);
}

a:focus-visible,
button:focus-visible,
.form-control:focus-visible,
.btn:focus-visible,
.link-button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--brand-secondary);
  color: var(--brand-accent);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--brand-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
}

.brand:hover {
  color: var(--brand-secondary);
}

.brand__logo,
.footer-brand__logo,
.hero__logo {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft);
}

.brand__logo {
  width: 3rem;
  height: 3rem;
}

.brand__name {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background-elevated);
  padding: 0.65rem;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--brand-secondary);
  border-radius: 999px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.primary-nav__link {
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.primary-nav__link:hover,
.primary-nav__link.is-active {
  background: rgba(196, 30, 36, 0.08);
  color: var(--brand-primary);
}

.site-main {
  padding-bottom: 3rem;
}

.hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(circle at top right, rgba(196, 30, 36, 0.12), transparent 42%),
    linear-gradient(180deg, #fff 0%, var(--background-primary) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.hero__copy h1,
.page-hero h1,
.section h2,
.admin-page h1 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--brand-secondary);
}

.hero__copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.35rem 0 1rem;
  max-width: 14ch;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.lede {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__logo {
  width: min(280px, 70vw);
  height: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.3rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

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

.btn-brand:hover {
  background: var(--brand-primary-dark);
  color: var(--brand-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--brand-secondary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
}

.btn-danger {
  background: #8b1218;
  color: #fff;
}

.btn-danger:hover {
  background: #6f0e13;
  color: #fff;
}

.section {
  padding: 3.25rem 0;
}

.section--muted {
  background: #efece8;
}

.section__header {
  margin-bottom: 1.75rem;
  max-width: 40rem;
}

.section__header h2,
.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero {
  padding: 2.75rem 0 1rem;
}

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

.service-card,
.panel,
.admin-card,
.contact-panel {
  background: var(--background-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-card,
.panel,
.contact-panel,
.admin-card {
  padding: 1.4rem;
}

.service-card h2,
.service-card h3,
.panel h2,
.panel h3,
.admin-card h2 {
  font-family: var(--font-display);
  margin-top: 0;
  color: var(--brand-secondary);
}

.service-card p,
.panel p {
  color: var(--text-muted);
}

.text-link {
  font-weight: 700;
  text-decoration: none;
}

.text-link::after {
  content: " →";
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.meta-line,
.muted,
.field-help,
.empty-note,
.footer-text,
.footer-meta {
  color: var(--text-muted);
}

.cta-band {
  padding-top: 0;
}

.cta-band__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--brand-secondary);
  color: #fff;
}

.cta-band__inner h2 {
  color: #fff;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
}

.cta-band__inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.service-detail {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.feature-list {
  padding-left: 1.15rem;
}

.feature-list li + li {
  margin-top: 0.45rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.btn-whatsapp {
  background: #128c7e;
  border-color: #128c7e;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #0e7a6e;
  border-color: #0e7a6e;
  color: #fff;
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}

.site-footer {
  background: var(--brand-secondary);
  color: rgba(255, 255, 255, 0.86);
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffd0d2;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-brand__logo {
  width: 3rem;
  height: 3rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.85rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.site-footer__copy,
.site-footer__credit {
  margin: 0;
}

.site-footer__credit {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.admin-page {
  padding: 2rem 0 3rem;
}

.admin-page.narrow {
  max-width: 860px;
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.25rem;
}

.admin-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-card {
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  color: inherit;
}

.status-banner {
  background: rgba(196, 30, 36, 0.08);
  border: 1px solid rgba(196, 30, 36, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--background-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

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

.data-table th,
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

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

.inline-form {
  display: inline;
  margin: 0;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand-primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.admin-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.field-help {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--brand-primary);
  outline: none;
}

.feature-editor {
  margin-top: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.2rem;
  background: #fff;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .hero__inner,
  .split,
  .service-detail,
  .contact-layout,
  .site-footer__grid,
  .service-grid,
  .admin-cards,
  .admin-form .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__copy h1 {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--header-height) + 0.35rem);
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 0.5rem;
    box-shadow: var(--shadow-soft);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .site-header {
    position: sticky;
  }

  .site-header__inner {
    position: relative;
  }

  .brand__name {
    font-size: 0.98rem;
  }
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.seo-editor,
.seo-warnings {
  margin-top: 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.2rem;
  background: #fff;
}

.seo-warnings {
  border-color: rgba(196, 30, 36, 0.25);
  background: rgba(196, 30, 36, 0.05);
}

.seo-warnings h2 {
  margin-top: 0;
  font-size: 1rem;
  font-family: var(--font-display);
}

.seo-preview {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #f8f8f8;
}

.seo-preview__title {
  color: #1a0dab;
  font-size: 1.15rem;
  margin: 0 0 0.2rem;
}

.seo-preview__url {
  color: #006621;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}

.seo-preview__desc {
  margin: 0;
  color: var(--text-muted);
}

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

.detail-list dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.detail-list dd {
  margin: 0;
}

.message-body {
  white-space: pre-wrap;
}

tr.is-unread td {
  font-weight: 700;
}

.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem 0.75rem 0.85rem;
  border-radius: 999px;
  background: #128c7e;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.22);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-fab:hover {
  background: #0e7a6e;
  color: #fff !important;
  transform: translateY(-2px);
}

.whatsapp-fab__icon {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.whatsapp-fab__label {
  padding-right: 0.15rem;
}

@media (max-width: 600px) {
  .whatsapp-fab {
    right: 1rem;
    bottom: 1rem;
    padding: 0.85rem;
  }

  .whatsapp-fab__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.admin-cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 900px) {
  .admin-cards {
    grid-template-columns: 1fr;
  }
}

.resource-list {
  display: grid;
  gap: 1.25rem;
}

.resource-card {
  background: var(--background-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

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

.resource-card h2 a {
  color: inherit;
  text-decoration: none;
}

.resource-card h2 a:hover {
  color: var(--brand-primary);
}

.resource-footer-note,
.article-footer-note {
  margin-top: 2rem;
  color: var(--text-muted);
}

.article-meta {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.article-content h2 {
  margin-top: 2rem;
  font-family: var(--font-display);
}

.article-content h3 {
  margin-top: 1.35rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
}

.article-content a {
  color: var(--brand-primary);
}

.article-aside {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--background-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.hub-service-list {
  padding-left: 1.25rem;
}

.hub-service-list li + li {
  margin-top: 0.75rem;
}

.hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
