/* ==========================================================================
   Hot Mess Group — Brand layer (design handoff, 4 Dec 2026)

   Loaded last (after style.css, custom.css, woocommerce.css) so these rules
   win without rebuilding the theme. Palette variables live in style.css :root.
   Layout, grid and existing media-query breakpoints are untouched.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base typography
   -------------------------------------------------------------------------- */
body {
  background: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;           /* 16px */
  line-height: 1.625;
  color: var(--color-charcoal);
}

p, li, td, th, input, textarea, button, select {
  font-family: var(--font-body);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: -0.01em;
}

/* Type scale. h1/h2 scale down fluidly on narrow screens (max = spec size)
   so no new breakpoints are needed. */
h1 { font-size: clamp(2.25rem, 5vw, 3rem);   line-height: 1.2; } /* 48px */
h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); line-height: 1.2; } /* 36px */
h3 { font-size: 1.75rem;  line-height: 1.3; }                     /* 28px */
h4 { font-size: 1.375rem; line-height: 1.3; }                     /* 22px */

small, .small { font-size: 0.875rem; line-height: 1.5; }

/* Secondary text — dates, captions, meta */
small, .meta, .caption, .entry-meta, .entry-date, .posted-on, .byline,
.wp-caption-text, figcaption, .wp-element-caption {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-grey);
}

.caption, .wp-caption-text, figcaption, .wp-element-caption {
  font-size: 13px;
  line-height: 1.4;
}

/* Emphasis / UI labels — Inter Medium */
.breadcrumbs, .post-tags, .post-categories a, .section-tag, .product-badge,
.woocommerce-breadcrumb, .tagged_as, .posted_in {
  font-family: var(--font-body);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   2. Navigation — Varela Round for brand unity
   -------------------------------------------------------------------------- */
nav a, .menu a, .nav-links a {
  font-family: var(--font-heading);
  font-weight: 400;
}

.nav-links a { color: var(--color-charcoal); }
.nav-links a:hover,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--color-hot-orange); }

/* Breadcrumbs keep Inter (UI label), not the nav font */
.breadcrumbs a { font-family: var(--font-body); }

/* --------------------------------------------------------------------------
   3. Links
   -------------------------------------------------------------------------- */
a:hover { color: var(--color-hot-orange); }

/* Text links in running content. Scoped to paragraphs (and list items in
   posts) so buttons and WooCommerce cart/account links keep their styling. */
.entry-content p a:not(.btn):not(.button),
.entry-content li a:not(.btn):not(.button),
.page-content p a:not(.btn):not(.button) {
  color: var(--color-hot-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content p a:not(.btn):not(.button):hover,
.entry-content li a:not(.btn):not(.button):hover,
.page-content p a:not(.btn):not(.button):hover {
  color: var(--color-hot-orange-dark);
}

/* --------------------------------------------------------------------------
   4. Buttons — Hot Orange, white text, 4px radius
   -------------------------------------------------------------------------- */
.btn, .button, .wp-block-button__link, .nav-cta,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-btn);
}

.btn-primary,
.nav-cta,
.wp-block-button__link:not(.has-background),
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce form .button.alt,
.woocommerce #place_order,
.woocommerce .checkout-button {
  background: var(--color-hot-orange);
  color: var(--color-white);
  box-shadow: none;
}

.btn-primary:hover,
.nav-cta:hover,
.wp-block-button__link:not(.has-background):hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce form .button.alt:hover,
.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover {
  background: var(--color-hot-orange-dark);
  color: var(--color-white);
  box-shadow: none;
}

.wp-block-button__link:not(.has-text-color) { color: var(--color-white); }

.btn-outline:hover {
  border-color: var(--color-hot-orange);
  color: var(--color-hot-orange);
}

/* --------------------------------------------------------------------------
   5. Page header — white with subtle bottom border
   -------------------------------------------------------------------------- */
.page-header,
.woocommerce-products-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-mid);
}

.page-header .page-title,
.page-title,
.woocommerce-products-header__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3rem);   /* 48px on desktop */
  line-height: 1.2;
  color: var(--color-charcoal);
}

/* --------------------------------------------------------------------------
   6. Body content
   -------------------------------------------------------------------------- */
.entry-content p,
.page-content p {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--color-charcoal);
}

/* Section H2s get a Hot Orange left accent bar (4px x 30px) */
.entry-content h2,
.page-content h2 {
  position: relative;
  padding-left: 18px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.entry-content h2::before,
.page-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  transform: translateY(-50%);
  width: 4px;
  height: 30px;
  border-radius: 2px;
  background: var(--color-hot-orange);
}

/* Not on centred headings, or inside WooCommerce blocks on content pages */
.entry-content h2.has-text-align-center,
.page-content h2.has-text-align-center,
.page-content .woocommerce h2,
.page-content .cart_totals h2 {
  padding-left: 0;
}
.entry-content h2.has-text-align-center::before,
.page-content h2.has-text-align-center::before,
.page-content .woocommerce h2::before,
.page-content .cart_totals h2::before {
  display: none;
}

/* --------------------------------------------------------------------------
   7. Logo (fallback used when no Custom Logo is uploaded)
   -------------------------------------------------------------------------- */
.hm-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(230, 74, 25, 0.08);
  box-shadow: inset 0 0 0 2px rgba(230, 74, 25, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hm-logo-icon svg { width: 24px; height: 24px; display: block; }

.hm-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1;
}

.hm-wordmark .hm-wordmark-main {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--color-charcoal);
}

.hm-wordmark .hm-hot { color: var(--color-charcoal); }

.hm-wordmark .hm-mess {
  color: var(--color-hot-orange);              /* fallback */
  background: var(--gradient-word);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hm-wordmark .hm-group {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-grey);
}

/* --------------------------------------------------------------------------
   8. Footer — charcoal, white text, teal links
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: 0;
}

.footer p,
.footer address,
.footer .footer-brand p,
.footer .footer-contact-item,
.footer .payment-icons-text {
  color: rgba(255, 255, 255, 0.8);
}

.footer h4,
.footer .footer-col h4 {
  color: rgba(255, 255, 255, 0.8);
}

.footer a,
.footer .footer-links a,
.footer .footer-contact-item a,
.footer .footer-legal a {
  color: var(--color-teal);
}

.footer a:hover,
.footer .footer-links a:hover,
.footer .footer-contact-item a:hover,
.footer .footer-legal a:hover {
  color: var(--color-white);
}

.footer .footer-social a { color: var(--color-white); }
.footer .footer-social a:hover { background: var(--color-teal); color: var(--color-charcoal); }

/* Bottom bar: full width, slightly darker charcoal */
.footer-grid { border-bottom: none; }

.footer-bottom-bar {
  background: var(--color-dark);
}

.footer-bottom-bar .footer-bottom {
  color: rgba(255, 255, 255, 0.8);
  border-top: none;
}

.footer-bottom-bar .footer-legal .separator { color: rgba(255, 255, 255, 0.4); }

/* White logo in the footer */
.footer .custom-logo {
  filter: brightness(0) invert(1);
}

.footer .hm-logo-icon {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.footer .hm-logo-icon .hm-flame { fill: var(--color-white); }

.footer .hm-wordmark .hm-hot,
.footer .hm-wordmark .hm-mess {
  color: var(--color-white);
  background: none;
  -webkit-text-fill-color: var(--color-white);
}

.footer .hm-wordmark .hm-group { color: rgba(255, 255, 255, 0.8); }

/* --------------------------------------------------------------------------
   9. Sub-brand sections (optional utilities)
   Add .sub-brand-sweets or .sub-brand-photography to a section/block to swap
   the accent colour inside it. Not used on the main site by default.
   -------------------------------------------------------------------------- */
.sub-brand-sweets {
  --color-hot-orange: var(--color-yellow);
  --color-hot-orange-dark: #E6A100;
  --color-coral: var(--color-yellow);
}

.sub-brand-photography {
  --color-hot-orange: var(--color-violet);
  --color-hot-orange-dark: #6A3BE8;
  --color-coral: var(--color-violet);
}

/* --------------------------------------------------------------------------
   10. Editor palette classes (front end)
   The theme dequeues WP global styles, so palette classes are defined here.
   -------------------------------------------------------------------------- */
.has-coral-color      { color: var(--color-hot-orange) !important; }
.has-navy-color       { color: var(--color-charcoal) !important; }
.has-teal-color       { color: var(--color-teal) !important; }
.has-gold-color       { color: var(--color-yellow) !important; }
.has-violet-color     { color: var(--color-violet) !important; }
.has-grey-color       { color: var(--color-grey) !important; }
.has-white-color      { color: var(--color-white) !important; }
.has-light-gray-color { color: var(--color-light) !important; }

.has-coral-background-color      { background-color: var(--color-hot-orange) !important; }
.has-navy-background-color       { background-color: var(--color-charcoal) !important; }
.has-teal-background-color       { background-color: var(--color-teal) !important; }
.has-gold-background-color       { background-color: var(--color-yellow) !important; }
.has-violet-background-color     { background-color: var(--color-violet) !important; }
.has-grey-background-color       { background-color: var(--color-grey) !important; }
.has-white-background-color      { background-color: var(--color-white) !important; }
.has-light-gray-background-color { background-color: var(--color-light) !important; }
