/*
 * AZIMUTH TYPOGRAPHY SYSTEM — v1.3
 * Derived from the Azimuth Engineering brand guidelines, with responsive
 * web sizes agreed during the WordPress/Blocksy setup.
 *
 * Headings: Manrope Medium (500), uppercase.
 * Body: Inter Regular (400), emphasis Semibold (600).
 * Primary display heading styling on the homepage is intentionally retained
 * from home.css (68px desktop maximum and Slate/Sky highlights).
 *
 * Font files are not bundled. Google Fonts loads Inter and Manrope via
 * wp_enqueue_style() in functions.php.
 */

:root {
  --az-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --az-font-display: 'Manrope', 'Inter', system-ui, sans-serif;
  --az-font-body-size: 16px;
  --az-font-body-leading: 1.62;
  --az-font-body-tracking: -0.02em;
  --az-font-heading-leading: 1.2;
  --az-font-heading-tracking: 0.04em;
  --az-font-heading-color: #11181D;
  --az-font-accent-color: #859AA6;
}

/* Site-wide body type, including all WooCommerce templates. */
html body,
body .entry-content,
body .site-main,
body .ct-footer,
body .woocommerce,
body .woocommerce-page {
  font-family: var(--az-font-body);
  font-size: var(--az-font-body-size);
  line-height: var(--az-font-body-leading);
  letter-spacing: var(--az-font-body-tracking);
}

body :is(p, li, blockquote, figcaption) {
  font-family: var(--az-font-body);
}

/* All display and content headings, including Blocksy/WooCommerce. */
body :is(h1, h2, h3, h4, h5, h6),
body :is(.entry-title, .page-title, .ct-post-title, .woocommerce-products-header__title, .product_title, .widget-title) {
  font-family: var(--az-font-display);
  font-weight: 500;
  line-height: var(--az-font-heading-leading);
  letter-spacing: var(--az-font-heading-tracking);
  text-transform: uppercase;
  color: var(--az-font-heading-color);
}

/* Individual heading scale — applied site-wide; homepage hero has its own
   larger editorial size in home.css and remains untouched. */
body h1 { font-size: 48px; }
body h2 { font-size: 36px; }
body h3 { font-size: 28px; }
body h4 { font-size: 22px; }
body h5 { font-size: 18px; }
body h6 { font-size: 16px; }

/* Header/navigation — typography only; Blocksy controls the header layout. */
body :is(.ct-header, .ct-header [data-id="menu"], .ct-header .menu) {
  font-family: var(--az-font-body);
}
body .ct-header :is(.menu > li > a, .ct-menu-link, .ct-header-account) {
  font-family: var(--az-font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Buttons/CTAs. Native Gutenberg, WordPress, Blocksy and WooCommerce. */
body :is(button, .button, .wp-element-button, .wp-block-button__link, .ct-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, input[type="submit"], input[type="button"]) {
  font-family: var(--az-font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Homepage CTA previously used 11px in home.css. Match new brand controls. */
body .az-home .wp-block-button .wp-block-button__link {
  font-family: var(--az-font-body) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.35 !important;
}

/* Forms and checkout: avoid uppercase inputs and keep them readable. */
body :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="url"], input[type="password"], select, textarea, .select2-container, .select2-results__option),
body .wc-block-components-text-input input {
  font-family: var(--az-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-transform: none;
}
body :is(label, .woocommerce-breadcrumb, .wc-block-components-formatted-money-amount) {
  font-family: var(--az-font-body);
}

@media (max-width: 767px) {
  body h1 { font-size: 32px; }
  body h2 { font-size: 28px; }
  body h3 { font-size: 24px; }
  body h4 { font-size: 20px; }
  body h5 { font-size: 18px; }
  body h6 { font-size: 16px; }
}
