/*
Theme Name: HKQCC
Theme URI: https://www.hkqcc.com
Description: GeneratePress child theme for Hong Kong Q.C. Center Ltd. Brand tokens only. Uses the locked website logo assets; do not redraw.
Author: HKQCC IT
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hkqcc
*/

/* Brand tokens */
:root {
  --hkqcc-red: #C41E3A;
  --hkqcc-red-hover: #9E1830;
  --hkqcc-text: #1A1A1A;
  --hkqcc-muted: #3D3F46;
  --hkqcc-bg: #F4F4F5;
  --hkqcc-white: #FFFFFF;
  --hkqcc-font: Arial, Helvetica, system-ui, sans-serif;
}

html {
  font-family: var(--hkqcc-font);
}

body {
  color: var(--hkqcc-text);
  background: var(--hkqcc-white);
  font-family: var(--hkqcc-font);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--hkqcc-text);
  font-family: var(--hkqcc-font);
  font-weight: 700;
  line-height: 1.25;
}

/* Links: near-black with modest red hover */
a {
  color: var(--hkqcc-text);
}
a:hover,
a:focus {
  color: var(--hkqcc-red);
}

/* Primary buttons — brand red, used sparingly. Never a full-page red ground. */
.wp-block-button__link,
.button,
.gb-button,
input[type="submit"],
.menu-bar-items .wp-block-button__link,
.site-header .cta-button,
.hkqcc-btn-primary {
  background-color: var(--hkqcc-red) !important;
  color: var(--hkqcc-white) !important;
  border: 0;
  border-radius: 2px;
  font-family: var(--hkqcc-font);
  font-weight: 700;
  text-decoration: none;
  padding: 0.7em 1.25em;
}

.wp-block-button__link:hover,
.button:hover,
.gb-button:hover,
input[type="submit"]:hover,
.hkqcc-btn-primary:hover,
.wp-block-button__link:focus,
.button:focus,
.gb-button:focus,
input[type="submit"]:focus {
  background-color: var(--hkqcc-red-hover) !important;
  color: var(--hkqcc-white) !important;
}

/* Promo band: light grey, thin red accent, not a red slab */
.hkqcc-promo,
.home-promo {
  background: var(--hkqcc-bg);
  border-left: 4px solid var(--hkqcc-red);
  padding: 1.5rem 1.25rem;
}

/* Alternate sections */
.hkqcc-band,
.site-footer {
  background: var(--hkqcc-bg);
  color: var(--hkqcc-text);
}

.site-footer {
  border-top: 1px solid #E5E5E6;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--hkqcc-muted);
}

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

/* Header logo: comfortable size; do not use the small white logo here or upscale it */
.site-logo img,
.custom-logo {
  max-height: 64px;
  width: auto;
  height: auto;
}

/* White logo is a small letterhead extract (~137x117). Use near native size only, on red or dark grounds. */
.hkqcc-logo-white {
  max-width: 137px;
  max-height: 117px;
  width: auto;
  height: auto;
}

/* Legal draft callout — staging only; remove after counsel approves */
.hkqcc-legal-draft-notice {
  background: var(--hkqcc-bg);
  border: 1px solid #E5E5E6;
  color: var(--hkqcc-muted);
  padding: 0.85rem 1rem;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

/* Readable measure for long pages */
.entry-content {
  max-width: 42rem;
}

.home .entry-content,
.page-template-default .entry-content {
  max-width: 48rem;
}

/* Tagline */
.hkqcc-tagline {
  font-style: italic;
  color: var(--hkqcc-muted);
}
