/*
 * Webstudio 0.2.9 — restrained cinnabar highlights, site-wide.
 * Loaded last so palette and dark-mode backgrounds remain unchanged.
 * Decorative accent: #E34234; accessible white-label button: #D53C2C.
 * No fonts, images, external requests, layout measurements or animations.
 */
:root {
  --ws-cinnabar: #E34234;
  --ws-cinnabar-button: #D53C2C;
  --ws-cinnabar-hover: #B72E22;
  --ws-cinnabar-text: #C73529;
  --ws-cinnabar-glow: rgba(227, 66, 52, .16);
}
html[data-ws-theme="dark"] {
  --ws-cinnabar-decorative: #FF7866;
  --ws-cinnabar-focus: #FF8875;
}
:root:not([data-ws-theme="dark"]) {
  --ws-cinnabar-decorative: var(--ws-cinnabar);
  --ws-cinnabar-focus: var(--ws-cinnabar-text);
}

/* Intentional color hierarchy: navy surfaces and azure top navigation stay. */
.button-primary,
html[data-ws-theme="dark"] .button-primary {
  background: var(--ws-cinnabar-button);
  color: #fff;
}
.button-primary:hover,
html[data-ws-theme="dark"] .button-primary:hover {
  background: var(--ws-cinnabar-hover);
  color: #fff;
}
.nav-contact,
html[data-ws-theme="dark"] .nav-contact {
  background: #005CB8;
  color: #fff;
}
.nav-contact:hover,
html[data-ws-theme="dark"] .nav-contact:hover {
  background: #006CD1;
}
.nav-list > li:hover > a,
.nav-list > li:focus-within > a,
.nav-list a:hover,
html[data-ws-theme="dark"] .nav-list a:hover {
  color: var(--ws-cinnabar-text);
}
html[data-ws-theme="dark"] .nav-list > li:hover > a,
html[data-ws-theme="dark"] .nav-list > li:focus-within > a,
html[data-ws-theme="dark"] .nav-list a:hover {
  color: var(--ws-cinnabar-decorative);
}
.nav-list > li > a::after { background: var(--ws-cinnabar); }

/* Small orange highlights; keep section headings and body text readable. */
.eyebrow-line { background: var(--ws-cinnabar); color: var(--ws-cinnabar); }
.strength-icon,
.service-arrow,
.testimonial-card > div,
.about-facts strong span,
.project-empty-mark {
  color: var(--ws-cinnabar);
}
.strength-icon { color: var(--ws-cinnabar-text); }
.text-rule { background: var(--ws-cinnabar); }
.hero-bottom a:hover .scroll-arrow { border-color: var(--ws-cinnabar-decorative); }
.hero-slider-controls button:hover { border-color: var(--ws-cinnabar-decorative); }
.service-card:hover .service-arrow {
  color: #fff;
  background: var(--ws-cinnabar-button);
  border-color: var(--ws-cinnabar-button);
}
.project-card:hover { box-shadow: inset 0 -3px 0 var(--ws-cinnabar), 0 16px 46px rgba(15,38,42,.08); }
.team-card .team-role,
.form-eyebrow { color: var(--ws-cinnabar-text) !important; }
.about-card { background: var(--ws-navy); color: #fff; }
.cta-section .eyebrow-line,
.site-footer .footer-brand span { color: var(--ws-cinnabar-decorative); background-color: var(--ws-cinnabar-decorative); }
.site-footer .footer-brand span { background: none; }

/* Contact, legal pages and footer: orange only on interactions and details. */
.contact-details a:hover,
.page-content a:hover,
.text-link:hover { color: var(--ws-cinnabar-text); }
.text-link { border-bottom-color: var(--ws-cinnabar); }
.ws-form input:not([type="checkbox"]):focus,
.ws-form textarea:focus,
.contact-form-card input:not([type="checkbox"]):focus,
.contact-form-card textarea:focus {
  border-color: var(--ws-cinnabar);
  box-shadow: 0 0 0 3px var(--ws-cinnabar-glow);
}
.contact-form-card input[type="checkbox"] { accent-color: var(--ws-cinnabar-text); }
.footer-links a:hover { color: var(--ws-cinnabar-decorative); }
.back-top:hover { border-color: var(--ws-cinnabar-decorative); color: var(--ws-cinnabar-decorative); }
.ws-mode-toggle:hover,
.ws-mode-toggle[aria-expanded="true"] { border-color: var(--ws-cinnabar); }
.ws-mode-choice[aria-pressed="true"]::after { color: var(--ws-cinnabar-text); }

/* Dot navigation: visible on both light and dark surfaces without color inversion. */
.ws-section-dots { mix-blend-mode: normal; }
.ws-section-dot-circle {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(20,43,76,.54), 0 1px 3px rgba(20,43,76,.22);
}
.ws-section-dot.is-active .ws-section-dot-circle {
  background: #fff;
  box-shadow: 0 0 0 2px var(--ws-cinnabar), 0 0 0 4px var(--ws-cinnabar-glow);
}
.ws-section-dot-label {
  color: var(--ws-navy);
  background: #fff;
  border: 1px solid rgba(20,43,76,.14);
  border-radius: 4px;
  padding: 5px 8px;
}

/* Dark-mode refinements must override the earlier navy/azure dark CSS. */
html[data-ws-theme="dark"] .strength-icon,
html[data-ws-theme="dark"] .service-arrow,
html[data-ws-theme="dark"] .testimonial-card > div,
html[data-ws-theme="dark"] .about-facts strong span,
html[data-ws-theme="dark"] .project-empty-mark,
html[data-ws-theme="dark"] .team-card .team-role,
html[data-ws-theme="dark"] .form-eyebrow {
  color: var(--ws-cinnabar-decorative) !important;
}
html[data-ws-theme="dark"] .service-card:hover .service-arrow {
  background: var(--ws-cinnabar-button);
  color: #fff !important;
  border-color: var(--ws-cinnabar-button);
}
html[data-ws-theme="dark"] .contact-details a:hover,
html[data-ws-theme="dark"] .page-content a:hover,
html[data-ws-theme="dark"] .text-link:hover,
html[data-ws-theme="dark"] .footer-links a:hover {
  color: var(--ws-cinnabar-decorative);
}
html[data-ws-theme="dark"] .contact-form-card input[type="checkbox"] { accent-color: var(--ws-cinnabar-decorative); }
html[data-ws-theme="dark"] .ws-form input:not([type="checkbox"]):focus,
html[data-ws-theme="dark"] .ws-form textarea:focus,
html[data-ws-theme="dark"] .contact-form-card input:not([type="checkbox"]):focus,
html[data-ws-theme="dark"] .contact-form-card textarea:focus {
  border-color: var(--ws-cinnabar-decorative);
  box-shadow: 0 0 0 3px var(--ws-cinnabar-glow);
}
html[data-ws-theme="dark"] .ws-mode-toggle:hover,
html[data-ws-theme="dark"] .ws-mode-toggle[aria-expanded="true"] { border-color: var(--ws-cinnabar-decorative); }
html[data-ws-theme="dark"] .ws-mode-choice[aria-pressed="true"]::after { color: var(--ws-cinnabar-decorative); }
html[data-ws-theme="dark"] .about-card { background: #005CB8; }
html[data-ws-theme="dark"] .project-card:hover {
  box-shadow: inset 0 -3px 0 var(--ws-cinnabar-decorative), 0 16px 46px rgba(0,0,0,.24);
}
/* Focus stays visible against either background, regardless of mouse or keyboard. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.ws-mode-toggle:focus-visible,
.ws-mode-choice:focus-visible { outline-color: var(--ws-cinnabar-focus); }

/* Existing layout and responsive breakpoints are intentionally untouched. */
@media (prefers-reduced-motion: reduce) {
  .project-card:hover,
  .service-card:hover { transition: none; }
}

/* V0.2.11: explicit contact-form outcomes, visible in light and dark modes.
 * All existing mail statuses/text and the generic informational notice stay unchanged.
 * A symbol accompanies color so the meaning remains clear without color vision. */
.form-notice--success,
.form-notice--warning,
.form-notice--error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.5;
}
.form-notice__symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.55rem;
  height: 1.55rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 900;
  line-height: 1;
}
.form-notice--success { background: #DCFCE7; color: #14532D; border-color: #86EFAC; border-left-color: #16A34A; }
.form-notice--error { background: #FEE2E2; color: #7F1D1D; border-color: #FCA5A5; border-left-color: #DC2626; }
.form-notice--warning { background: #FFF3CD; color: #713F12; border-color: #FCD34D; border-left-color: #D97706; }

html[data-ws-theme="dark"] .form-notice--success {
  background: #123E2B; color: #D1FAE5; border-color: #26744B; border-left-color: #4ADE80;
}
html[data-ws-theme="dark"] .form-notice--error {
  background: #4A202A; color: #FFE4E6; border-color: #9F3848; border-left-color: #FB7185;
}
html[data-ws-theme="dark"] .form-notice--warning {
  background: #493016; color: #FFF3D6; border-color: #997027; border-left-color: #FBBF24;
}
