/**
 * Self-hosted brand fonts (woff2) from uploads/fonts — same-origin, no CDN.
 */
@font-face {
  font-family: "Yekan Bakh";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/YekanBakh-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Yekan Bakh";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/YekanBakh-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Yekan Bakh";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/YekanBakh-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Yekan Bakh";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/YekanBakh-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Yekan Bakh";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/YekanBakh-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Yekan Bakh";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/YekanBakh-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/YekanBakh-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/YekanBakh-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Yekan Bakh FaNum";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/YekanBakh-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/Vazirmatn-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/Vazirmatn-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/Vazirmatn-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/wp-content/uploads/fonts/Vazirmatn-Bold.woff2") format("woff2");
}

:root {
  --mh-font: "Yekan Bakh FaNum", "Yekan Bakh", "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

html,
body,
button,
input,
select,
textarea,
.wp-site-blocks,
.wp-block-navigation,
.wp-block-navigation *,
.wp-block-button__link,
.wp-element-button,
.mh-booking,
.mh-contact,
.caption,
.caption *,
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title,
p, li, a, span, label, td, th {
  font-family: var(--mh-font) !important;
}

/* === mh-ux-inline-start === */
/* Global UI/UX + a11y polish for MH Sigma site */
:root {
  --mh-navy: #0b1f73;
  --mh-navy-2: #1f355e;
  --mh-gold: #8a6a28;
  --mh-ink: #2a3340;
  --mh-muted: #6b7280;
  --mh-line: #e6e8ee;
  --mh-focus: #8a6a28;
}

/* Keyboard focus — never remove outline without replacement */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.wp-block-button__link:focus-visible,
.consult-btn:focus-visible,
.wp-block-navigation-item__content:focus-visible {
  outline: 3px solid var(--mh-focus) !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 4px rgba(138, 106, 40, 0.22) !important;
}

.skip-link:focus,
.skip-link:focus-visible,
a.skip-link:focus {
  position: fixed !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 100000 !important;
  background: #0b1f73 !important;
  color: #fff !important;
  padding: 12px 18px !important;
  border-radius: 10px !important;
  clip: auto !important;
  width: auto !important;
  height: auto !important;
  outline: 3px solid #e8c878 !important;
}

/* Hero caption: keep brand text inside viewport on mid/large screens */
.hero .caption {
  right: clamp(16px, 5vw, 10%) !important;
  max-width: min(620px, calc(100vw - 48px)) !important;
  box-sizing: border-box !important;
  padding-inline: 4px;
}
.hero .caption h1 {
  font-size: clamp(2.35rem, 4.2vw, 4.4rem) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 1100px) and (min-width: 782px) {
  .hero .caption {
    max-width: min(480px, 44vw) !important;
  }
  .hero .caption h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.2rem) !important;
  }
  .hero .caption p {
    font-size: 1.1rem !important;
  }
}

/* Stack hero earlier for tablets */
@media (max-width: 900px) {
  .hero {
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .hero > img {
    width: 100% !important;
    height: min(52vh, 400px) !important;
    object-fit: cover !important;
    object-position: center 18% !important;
  }
  .hero::before {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 0;
    height: min(52vh, 400px) !important;
    background: linear-gradient(180deg, rgba(11, 31, 115, 0.12) 0%, rgba(11, 31, 115, 0.55) 100%) !important;
    z-index: 1;
  }
  .hero .caption {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    max-width: none !important;
    width: 100% !important;
    padding: 28px 20px 34px !important;
    background: #0b1f73 !important;
    z-index: 2 !important;
  }
  .hero .consult-btn {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* Stats are metrics, not headings */
.statistics .stat strong,
.statistics .stat .stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--mh-gold);
  line-height: 1.2;
}
.statistics .stat p {
  margin: 0.55rem 0 0;
  color: var(--mh-ink);
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Footer social without Font Awesome CDN */
.footer-social a {
  font-size: 0;
}
.footer-social a svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

/* Form comfort */
.mh-booking input,
.mh-booking select,
.mh-booking textarea,
.mh-contact input,
.mh-contact textarea {
  min-height: 44px;
}
.mh-booking textarea,
.mh-contact textarea {
  min-height: 120px;
}

/* Blog: only one visible page title */
body.page-id-113 .wp-block-post-title {
  display: none !important;
}

/* Header logo link target size */
header .wp-block-site-logo a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* One CTA in header — hide duplicate button nested inside navigation */
header .wp-block-navigation .wp-block-buttons,
header .wp-block-navigation .wp-block-button:not(.consult-btn) {
  display: none !important;
}
/* === mh-ux-inline-end === */
