/* RxTech Systems
   The only colors used anywhere are the theme's six variables:
   --background --surface --text --muted --accent --on-accent
   (set per theme in <head>; see app/theme.php). Never add another color here (color-mix() of them is fine).

   Fonts, capitals, buttons and layout come from the design library (rxtech-library, options.json and fonts.json):
   the theme sets variables such as --font-head, --radius-button or --case-headings, and classes on <body>
   (cards-*, header-*, page-*, btn-*). Every var() below has today's RxTech value as its fallback, so the site
   looks the same without the library. */

/* Poppins for all text (2026-10-05). The logo is Bruno Ace, drawn as shapes in logo_svg(), so it stands apart.
   Bruno Ace is also used for the numbered cards (01, 02...), chosen by Kristine 2026-10-05. */
@font-face { font-family: 'Bruno Ace'; src: url('../fonts/BrunoAce-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body, 'Poppins', system-ui, 'Segoe UI', Ubuntu, Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: calc(17px * var(--size-scale, 1));
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: var(--width-page, 1160px); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Links in running text: Text color with an Accent underline (brand red is too dark for small text on black). */
.link, .site-footer a, .site-list a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.link:hover, .site-footer a:hover, .site-list a:hover { text-decoration-thickness: 4px; } /* not Accent text: too little contrast for small type */

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: var(--weight-button, 600);
  text-transform: var(--case-buttons, none);
  letter-spacing: var(--track-buttons, 0);
  text-decoration: none;
  padding: var(--pad-button, 13px 24px);
  border-radius: var(--radius-button, 10px);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-outline { background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--accent); color: var(--on-accent); }
.btn-small { padding: 8px 16px; font-size: 15px; }

/* ---- Sale banner ---- */
.sale-banner {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-weight: 600;
  padding: 9px 16px;
  font-size: 15px;
}
.sale-banner a { color: inherit; text-decoration: none; }
.sale-banner a:hover { text-decoration: underline; }

/* ---- Header ---- */
.site-header { position: relative; border-bottom: 1px solid var(--surface); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: inline-flex; line-height: 0; }
.logo { height: 38px; width: auto; }
.logo-header { height: 56px; width: auto; } /* header logo (2026-11-08): badge with the plain-R Rx + "TECH SYSTEMS" on one line; about 4.6 times as wide as tall */
.logo-badge { height: 64px; width: 64px; } /* badge C (2026-11-08): a square picture; its words are only a mark at this size */
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; text-transform: var(--case-menu, none); letter-spacing: var(--track-menu, 0); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.menu-toggle { display: none; }
.header-ornament { position: absolute; right: 12px; top: 100%; max-height: 72px; width: auto; pointer-events: none; z-index: 2; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block; font: inherit; font-weight: 600; background: var(--surface); color: var(--text);
    border: 0; border-radius: 8px; padding: 8px 14px; cursor: pointer;
  }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: flex; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); padding: 8px 20px 20px; }
  .site-nav a:not(.btn) { padding: 12px 0 12px 12px; } /* every item indented the same, so the bar below doesn't shift one */
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); } /* bar, not Accent text */
  .site-nav .btn { margin-top: 10px; text-align: center; }
  .logo { height: 30px; }
  .logo-badge { height: 52px; width: 52px; }
  .logo-header { height: 44px; width: auto; } /* 204px wide: fits beside the Menu button at 320px */
}

/* ---- Type ---- */
h1, h2, h3, .display, .section-title, .cta-title, .service-title {
  font-family: var(--font-head, inherit); font-weight: var(--weight-head, 700);
  text-transform: var(--case-headings, none); letter-spacing: var(--track-headings, 0);
}
.footer-heading, .side-title { font-family: inherit; text-transform: var(--case-labels, uppercase); }
.card-num { font-family: var(--font-num, 'Bruno Ace', system-ui, sans-serif); font-weight: 400; }
.eyebrow, .footer-heading { font-weight: 600; }
.display { font-size: clamp(38px, 6.4vw, 76px); line-height: 1.08; margin: 0 0 22px; letter-spacing: var(--track-head, -0.5px); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 0 32px; }
/* Small text is never Accent-colored (the brand color is too dark on black at small sizes); Accent is used for the separators. */
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: var(--track-labels, 3px); text-transform: var(--case-labels, uppercase); margin: 0 0 18px; }
.eyebrow span { color: var(--accent); padding: 0 6px; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 30px; }
.subhead { font-size: 20px; margin: 56px 0 14px; }

/* ---- Sections ---- */
.hero { padding: calc(clamp(64px, 11vw, 140px) * var(--space, 1)) 0 calc(clamp(56px, 8vw, 100px) * var(--space, 1)); position: relative; }
.hero.has-image {
  background-image: linear-gradient(90deg, var(--background) 35%, transparent), var(--hero-image);
  background-size: cover;
  background-position: center right;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.section { padding: calc(clamp(48px, 7vw, 84px) * var(--space, 1)) 0; }

/* ---- Cards ---- */
.cards { display: grid; gap: 18px; }
.cards-services { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--surface); border-radius: var(--radius-card, 16px); padding: 28px 26px; }
.card h3 { font-size: 21px; margin: 0 0 8px; }
.card p { margin: 0 0 14px; }
.card-num { color: var(--accent); font-size: 26px; line-height: 1; margin: 0 0 18px !important; } /* large enough for Accent */
.status {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text); border: 1px solid var(--accent); border-radius: 999px; padding: 3px 10px;
  text-transform: var(--case-labels, uppercase);
}
.card-cta { border: 2px dashed var(--accent); background: transparent; display: flex; flex-direction: column; justify-content: center; }
.card-cta p:last-child { margin: 8px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 5px 0 5px 20px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 2px; background: var(--accent); }

.site-list { list-style: none; padding: 0; margin: 0 0 26px; }
.site-list li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--surface); }
.site-list li span { font-weight: 600; }

.cta { background: var(--surface); border-radius: calc(var(--radius-card, 16px) + 4px); padding: clamp(28px, 5vw, 52px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-left: 4px solid var(--accent); }
.cta-title { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; }
.cta p { margin: 0; }

/* ---- Inner pages ---- */
.page-head { padding: calc(clamp(56px, 9vw, 110px) * var(--space, 1)) 0 clamp(20px, 3vw, 36px); }
.page-head .status { margin: 0 0 16px; }
.section-tight { padding-top: 12px; }
.cards-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }
.card-site .shot { display: block; border-radius: var(--radius-small, 10px); overflow: hidden; margin: -8px -6px 20px; line-height: 0; }
.card-site img { width: 100%; height: auto; transition: transform .3s ease; }
.card-site .shot:hover img { transform: scale(1.03); }
.card-link { margin: 14px 0 0 !important; }
.flow-note { margin-top: -12px; }

.service-row { display: grid; grid-template-columns: 70px minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; padding: 36px 0; border-top: 1px solid var(--surface); }
.service-row:first-child { border-top: 0; }
.service-row .card-num { margin-top: 6px !important; }
.service-title { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 10px; }
.service-row p { margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; color: var(--muted); border: 1px solid var(--muted); border-radius: 999px; padding: 1px 10px; }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; gap: 10px; } }

.prose p { margin: 0 0 20px; }
.prose h2 { font-size: clamp(20px, 2.2vw, 24px); margin: 40px 0 12px; }
.prose ul { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin: 0 0 10px; }
.prose .rx-symbol { font-size: 1.6em; line-height: 1; vertical-align: -0.12em; } /* the ℞ in the About fun fact */
.field-note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 8px; padding: 0; }
.field input:not([type=radio]):not([type=checkbox]), .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--background);
  border: 1px solid var(--muted); border-radius: var(--radius-small, 10px); padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field-short input:not([type=radio]):not([type=checkbox]) { max-width: 7rem; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.field .choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0;
  background: var(--background); border: 1px solid var(--muted); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input { accent-color: var(--accent); margin: 0; }
.has-error input:not([type=radio]):not([type=checkbox]), .has-error textarea { border-color: var(--accent) !important; border-width: 2px !important; }
/* Errors: a solid Accent box with On-accent text and a "!" badge, so they can't be missed. */
.field-error, .form-alert { display: flex; align-items: flex-start; gap: 10px; width: fit-content; max-width: 100%;
  margin: 8px 0 0; font-weight: 600; background: var(--accent); color: var(--on-accent); border-radius: 8px; padding: 6px 12px; }
.field-error::before, .form-alert::before { content: "!"; flex: none; display: grid; place-items: center; width: 20px; height: 20px;
  margin-top: 2px; border-radius: 50%; background: var(--on-accent); color: var(--accent); font-weight: 700; font-size: 14px; line-height: 1; }
.form-alert { width: auto; margin: 0; padding: 12px 16px; font-size: 17px; border-radius: 10px; }
.form-alert::before { width: 24px; height: 24px; font-size: 16px; margin-top: 1px; }
.has-error .choice { border-style: dashed; border-color: var(--accent); }
.form .btn { align-self: flex-start; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#request { scroll-margin-top: 24px; } /* a little room above the form when the page opens at it */
.notice { background: var(--surface); border-radius: var(--radius-card, 16px); padding: 32px; border-left: 4px solid var(--accent); }
.notice h2 { margin: 0 0 10px; }
.contact-side .card p { margin: 0 0 18px; overflow-wrap: anywhere; }
.contact-side .card .text-us { margin: -8px 0 8px; }
.side-title { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-weight: 600; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--surface); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 36px; }
.footer-heading { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.site-footer p { margin: 0 0 8px; }
.logo-footer { height: 32px; margin-bottom: 14px; }
.logo-badge.logo-footer { height: 176px; width: 176px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.site-footer .footer-links a { text-decoration: none; color: var(--muted); }
.site-footer .footer-links a:hover { color: var(--text); }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--surface); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-base a { color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Admin theme preview bar (only the signed-in admin sees it) ---- */
.preview-bar { background: var(--text); color: var(--background); text-align: center; font-size: 14px; padding: 8px 16px; }
.preview-bar a, .preview-bar button { color: inherit; font-weight: 700; margin-left: 12px; }
.preview-bar form { display: inline; }
.preview-bar button { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

/* ---- Local preview only: details not decided yet ---- */
.placeholder { border: 1px dashed var(--accent); border-radius: 6px; padding: 1px 8px; font-size: .9em; color: var(--muted); }
.placeholder::before { content: 'TODO: '; color: var(--accent); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* The tagline under the footer logo: capitals, no period (brand, 2026-10-09) */
.slogan { text-transform: uppercase; letter-spacing: 3px; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }

/* =====================================================================
   Look settings from the design library (body classes; options.json).
   ===================================================================== */

/* Buttons: style */
.btn-outline-style .btn-accent { background: transparent; color: var(--text); }
.btn-outline-style .btn-accent:hover { background: var(--accent); color: var(--on-accent); }
.btn-raised .btn-accent { box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn-raised .btn-accent:hover { box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 48%, transparent); }

/* Cards: outlined, flat, glass (filled is the default above) */
.cards-outlined .card, .cards-outlined .cta, .cards-outlined .notice {
  background: transparent; border: 1px solid color-mix(in srgb, var(--muted) 55%, transparent);
}
.cards-outlined .cta, .cards-outlined .notice { border-left: 4px solid var(--accent); }
.cards-flat .card { background: transparent; border-radius: 0; padding: 22px 0 0; border-top: 3px solid var(--accent); }
.cards-flat .card-cta { border: 0; border-top: 3px dashed var(--accent); }
.cards-flat .cta, .cards-flat .notice { border-radius: 0; }
.cards-glass { background:
  radial-gradient(60rem 40rem at 10% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%),
  radial-gradient(50rem 40rem at 100% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
  var(--background); background-attachment: fixed; }
.cards-glass .card, .cards-glass .cta, .cards-glass .notice {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}
.cards-glass .card-cta { background: transparent; border: 2px dashed var(--accent); }
.cards-glass .site-header { background: color-mix(in srgb, var(--background) 70%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* Header: logo centered with the menu below */
@media (min-width: 861px) {
  .header-centered .header-row { flex-direction: column; justify-content: center; padding: 22px 0 14px; gap: 14px; }
  .header-centered .site-nav { gap: 26px; }
}

/* Header: see-through over the top section, which gets the Surface color as a full-width band */
.header-overlay .site-header { border-bottom: 0; z-index: 4; margin-bottom: -84px; background: transparent; }
.header-overlay main > section:first-child { background: var(--surface); padding-top: calc(clamp(56px, 9vw, 110px) * var(--space, 1) + 84px); padding-bottom: calc(clamp(40px, 6vw, 80px) * var(--space, 1)); }
.header-overlay main > section.hero:first-child { padding-top: calc(clamp(64px, 11vw, 140px) * var(--space, 1) + 84px); }
.header-overlay main > section:first-child + .section-tight { padding-top: calc(clamp(40px, 6vw, 72px) * var(--space, 1)); }
.header-overlay .hero.has-image { background-image: linear-gradient(90deg, var(--surface) 35%, transparent), var(--hero-image); }
@media (max-width: 860px) { .header-overlay .site-header { margin-bottom: -64px; } }

/* Page: the whole site in a framed box on a tinted background */
.page-boxed { background: color-mix(in srgb, var(--surface) 65%, var(--background)); }
.page-boxed .site-shell {
  max-width: calc(var(--width-page, 1160px) + 80px); margin: clamp(0px, 3vw, 28px) auto; background: var(--background);
  border-radius: var(--radius-card, 16px); overflow: hidden; border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
}
.page-boxed .site-footer { margin-top: 0; }
