/* Base stylesheet for every customer site and template example.
   All visual identity comes from the theme tokens in tema.css
   (--qo-* custom properties); nothing here is specific to a category. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--qo-font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--qo-text); background: var(--qo-background); }
h1, h2, h3 { font-family: var(--qo-font-heading); line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--qo-primary); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--qo-accent); outline-offset: 2px; }

.qo-wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }

.qo-header { background: var(--qo-surface); border-bottom: 1px solid color-mix(in srgb, var(--qo-text) 12%, transparent); }
.qo-header__inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: 1rem; }
.qo-brand { font-family: var(--qo-font-heading); font-weight: 700; font-size: 1.3rem; color: var(--qo-text); text-decoration: none; }
.qo-nav { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.qo-nav a { color: var(--qo-text); text-decoration: none; padding-block: .2rem; }
.qo-nav a:hover, .qo-nav a[aria-current="page"] { border-bottom: 2px solid var(--qo-accent); }

.qo-section { padding-block: clamp(2.25rem, 6vw, 4rem); }
.qo-section:nth-of-type(even) { background: var(--qo-surface); }
.qo-hero { background: var(--qo-primary) !important; color: var(--qo-primary-contrast); padding-block: clamp(3.5rem, 11vw, 7rem); }
.qo-lead { font-size: 1.25rem; max-width: 40ch; opacity: .92; }

.qo-button { display: inline-block; margin-top: .75rem; padding: .8rem 1.5rem; border-radius: var(--qo-radius); background: var(--qo-accent); color: var(--qo-text); font-weight: 700; text-decoration: none; }
.qo-button:hover { filter: brightness(1.07); }

.qo-cards { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.qo-card { background: var(--qo-background); border: 1px solid color-mix(in srgb, var(--qo-text) 12%, transparent); border-radius: var(--qo-radius); padding: 1.25rem; }
.qo-section:nth-of-type(odd) .qo-card { background: var(--qo-surface); }
.qo-card h3 { margin-bottom: .35em; }
.qo-card__body { color: var(--qo-muted); margin-bottom: .5em; }
.qo-card__extra { font-weight: 700; color: var(--qo-primary); margin: 0; }
.qo-card blockquote { margin: 0 0 .5em; font-style: italic; }

.qo-menu__group { margin-top: 1.75rem; color: var(--qo-primary); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }
.qo-menu__list { list-style: none; padding: 0; margin: 0; }
.qo-menu__item { display: flex; justify-content: space-between; gap: 1.5rem; padding: .8rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--qo-text) 22%, transparent); }
.qo-menu__name { font-weight: 700; display: block; }
.qo-menu__description { color: var(--qo-muted); font-size: .95rem; display: block; }
.qo-menu__price { font-weight: 700; white-space: nowrap; }

.qo-hours { border-collapse: collapse; width: min(100%, 30rem); }
.qo-hours th, .qo-hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid color-mix(in srgb, var(--qo-text) 12%, transparent); }
.qo-hours td { text-align: right; }

.qo-contact { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0; }
.qo-contact dt { color: var(--qo-muted); }
.qo-contact dd { margin: 0; overflow-wrap: anywhere; }

.qo-faq__item { border-bottom: 1px solid color-mix(in srgb, var(--qo-text) 12%, transparent); padding: .9rem 0; }
.qo-faq__item summary { font-weight: 700; cursor: pointer; }
.qo-faq__item p { margin: .6rem 0 0; color: var(--qo-muted); }

.qo-social { list-style: none; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }

.qo-footer { background: var(--qo-text); color: var(--qo-background); padding-block: 2.5rem; }
.qo-footer p { margin: 0; opacity: .85; }
.qo-footer__name { font-family: var(--qo-font-heading); font-weight: 700; font-size: 1.2rem; opacity: 1 !important; }

/* Platform banner (template examples and draft previews); fixed colors so it
   never looks like part of the customer's site. */
.qo-banner { background: #1b2a33; color: #fff; font-family: system-ui, sans-serif; font-size: .95rem; }
.qo-banner__inner { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: .6rem; }
.qo-banner p { margin: 0; }
.qo-banner a { color: #fff; margin-left: .75rem; }
.qo-banner__button { background: #e8a13a; color: #1b2a33 !important; padding: .35rem .9rem; border-radius: 999px; font-weight: 700; text-decoration: none; margin-left: 0 !important; }

@media (max-width: 30rem) {
  .qo-contact { grid-template-columns: 1fr; gap: 0; }
  .qo-contact dd { margin-bottom: .6rem; }
}
