/*
Theme Name: Astrus Child
Description: Astrus official-brand child theme for Mistral Nexus.
Author: Mistral Works
Template: mistral-nexus
Version: 1.0.8
Text Domain: astrus-child
Requires PHP: 8.0
*/

/* Brand identity: official colors; parent layout remains authoritative. */
:root {
  --mw-primary: #248dc5;
  --mw-primary-hover: #176f9e;
  --mw-secondary: #ae2758;
  --mw-heading: #000000;
  --mw-text: #000000;
  --mw-on-primary: #ffffff;
  --astrus-accent: #ae2758;
  --astrus-accent-hover: #8c1f46;
  --astrus-serif: "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "Noto Serif JP", serif;
  --astrus-latin-serif: Garamond, "EB Garamond", Georgia, serif;
  --mw-logo-width: 100px;
  --mw-logo-height: 60px;
}

/* Header: CSS only, retaining Mistral Nexus menu and logo functionality. */
.site-header {
  border-bottom-color: #e2e8ee;
}

.site-header__inner {
  min-height: 94px;
}

.site-header__brand {
  gap: 14px;
}

.site-header__site-name {
  font-family: var(--astrus-serif);
  font-weight: 700;
  letter-spacing: .015em;
}

.site-header__site-name:hover,
.site-header__site-name:focus-visible,
.site-nav__list > li.current-menu-item > a,
.site-nav__list > li.current-menu-ancestor > a {
  color: var(--mw-primary);
}

.site-nav__list > li > a {
  font-weight: 600;
  transition: color .18s ease;
}

.site-header__contact-list a {
  background: var(--astrus-accent);
  color: #fff;
}

.site-header__contact-list a:hover,
.site-header__contact-list a:focus-visible {
  background: var(--astrus-accent-hover);
  color: #fff;
}

/* The full official logo includes the office name. Assigning it as a
   custom logo can duplicate the WordPress site title. Enable this rule
   only once the actual logo file is registered and verified in-browser.
   .site-header__brand:has(.custom-logo) .site-header__site-name { display: none; }
*/

@media (max-width: 1050px) {
  :root {
    --mw-logo-width: 80px;
    --mw-logo-height: 48px;
  }

  .site-header__inner {
    min-height: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav__list > li > a {
    transition: none;
  }
}


/* Astrus visual system: shared across HOME and inner pages. */
:root {
  --mw-font-heading: var(--astrus-serif);
  --mw-muted: #4b5864;
  --mw-surface: #f5f9fc;
  --mw-border: #dbe5ec;
  --mw-card-shadow: 0 5px 22px rgba(22, 74, 105, .065);
  --mw-hover-shadow: 0 13px 30px rgba(22, 74, 105, .12);
  --mw-cta-bg: #248dc5;
  --mw-cta-text: #ffffff;
  --mw-cta-button-bg: #ffffff;
  --mw-cta-button-text: #125b81;
  --mw-cta-button-border: #ffffff;
  --mw-cta-button-hover-bg: #f0f8fd;
}

/* Page sections: subtle brand accent, not a solid-color takeover. */
.mw-section__eyebrow,
.mw-detail__eyebrow {
  color: var(--mw-primary);
}

.mw-section__title,
.mw-detail__title {
  color: var(--mw-heading);
}

.mw-section__heading {
  position: relative;
}

.mw-section__more:hover,
.mw-section__more:focus-visible {
  color: var(--astrus-accent);
}

/* Cards: preserve parent dimensions and responsive column behavior. */
.mw-card {
  border-color: var(--mw-border);
}

.mw-card__link:hover .mw-card__title,
.mw-card__link:focus-visible .mw-card__title {
  color: var(--mw-primary);
}

.mw-card__title {
  transition: color .18s ease;
}

/* Hero: a cool, transparent overlay works with photographic backgrounds. */
.mw-hero__overlay {
  background: linear-gradient(90deg, rgba(11, 43, 65, .70) 0%, rgba(16, 70, 101, .36) 58%, rgba(16, 70, 101, .10) 100%);
}

.mw-hero__eyebrow {
  color: #cdeefc;
}

.mw-hero__dot.is-active span {
  background: #fff;
}

/* CTA: Astrus blue with restrained white button and burgundy interaction. */
.mw-cta__text {
  font-weight: 400;
}

.mw-cta__button:hover,
.mw-cta__button:focus-visible {
  color: var(--astrus-accent);
}

/* Secondary interactive details and footer. */
.mw-cardlist__page.is-current {
  border-color: var(--mw-primary);
}

.site-footer {
  border-top: 3px solid var(--mw-primary);
}

.site-footer__brand {
  font-family: var(--astrus-serif);
}

.site-footer__phones a:hover,
.site-footer__phones a:focus-visible,
.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--astrus-accent);
}

@media (prefers-reduced-motion: reduce) {
  .mw-card__title {
    transition: none;
  }
}
