/* Madison Castle — site-specific styles.
   Layered on top of madison-castle-design-system.css (tokens + mc-* component CSS).
   Ported from the inline <style> block in the original design-canvas prototype
   (Madison Castle Site.dc.html), unchanged in values — only selectors that referenced
   the prototype's templating were adjusted to plain classes/attributes. */

body {
  margin: 0;
  background: var(--surface);
  font-family: var(--font-sans);
  color: var(--ink-muted);
}
* { box-sizing: border-box; }
a { color: var(--blue); text-decoration: none; }
.mc-footer a { color: var(--on-inverse); }
.mc-footer a:hover { color: var(--green-light); }
a:hover { color: var(--blue-hover); text-decoration: underline; }
img { max-width: 100%; }

.mc-shell { max-width: 1140px; margin: 0 auto; }
.mc-band { padding: var(--space-7) var(--space-4); }

.mc-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  background: var(--surface-sunken);
  color: var(--ink);
  cursor: pointer;
}
.mc-nav-toggle:hover { background: var(--border); }
.mc-nav-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.mc-util { background: var(--surface-inverse); }
.mc-util__bar {
  max-width: 1140px; margin: 0 auto; padding: 0 var(--space-4);
  display: flex; align-items: stretch; justify-content: space-between; gap: var(--space-4); min-height: 44px;
}
.mc-util__side { display: flex; align-items: center; gap: var(--space-4); flex-shrink: 0; }
.mc-util__phone { color: var(--on-inverse); font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.mc-util__phone:hover { color: var(--green-light); text-decoration: underline; }
.mc-util__note { color: var(--on-inverse-muted); font-size: 13px; }
.mc-tabs { display: flex; align-items: stretch; flex-shrink: 0; }

@media (max-width: 759px) {
  .mc-util__note { display: none; }
  .mc-util__side:last-child { display: none; }
}
@media (max-width: 559px) {
  .mc-util__bar { padding: 0; gap: 0; }
  .mc-util__side { padding-left: var(--space-4); }
  .mc-tabs { flex: 1; min-width: 0; }
  .mc-tab { flex: 1; min-width: 0; padding: 0 var(--space-2); font-size: 13px; }
}
.mc-tab {
  border: 0; background: none; cursor: pointer; padding: 0 var(--space-5); min-height: 44px;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-inverse-muted); white-space: nowrap;
}
.mc-tab:hover { color: var(--on-inverse); }
.mc-tab:focus-visible { outline: 3px solid var(--focus-inverse); outline-offset: -3px; }
.mc-tab[aria-pressed="true"] { background: var(--green-light); color: var(--on-green-light); }

.mc-trigger {
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; color: var(--blue);
  padding: var(--space-2) 0; min-height: 44px; border-bottom: 3px solid transparent;
}
.mc-trigger:hover { color: var(--blue-hover); }
.mc-trigger:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.mc-trigger[aria-expanded="true"] { color: var(--ink); border-bottom-color: var(--green); }
.mc-trigger__caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }

.mc-mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 45;
  background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.mc-mega__inner {
  max-width: 1140px; margin: 0 auto; padding: var(--space-6) var(--space-4);
  display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: var(--space-6);
}
.mc-mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 var(--space-5); }
.mc-mega__link {
  display: block; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--blue);
  padding: 10px 0; min-height: 44px; text-decoration: none;
}
.mc-mega__link:hover { color: var(--blue-hover); text-decoration: underline; }
.mc-mega__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.mc-segswitch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-sunken); border: 1px solid var(--border); border-radius: var(--radius-pill);
}
.mc-segswitch__btn {
  background: none; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted);
  padding: 9px var(--space-4); min-height: 40px; white-space: nowrap;
}
.mc-segswitch__btn:hover { color: var(--ink); }
.mc-segswitch__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.mc-segswitch__btn[aria-pressed="true"] { background: var(--green-light); color: var(--on-green-light); }
.mc-segswitch--block { display: flex; width: 100%; }
.mc-segswitch--block .mc-segswitch__btn { flex: 1; min-height: 48px; font-size: 15px; }

.mc-drawer__group { padding-top: var(--space-4); }
.mc-drawer__eyebrow { margin: 0 0 var(--space-1); color: var(--ink-muted); }
.mc-drawer__row {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid var(--border); padding: var(--space-4) 0; min-height: 56px;
  font-family: var(--font-sans); font-size: 16px; line-height: 24px; color: var(--blue); cursor: pointer;
}
.mc-drawer__row:hover { color: var(--blue-hover); text-decoration: underline; }
.mc-drawer__row:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.mc-field--select { position: relative; }
.mc-field--select .mc-field__control { padding: 23px 32px 7px 8px; appearance: none; background: var(--surface-raised); color: var(--ink); }
.mc-field--select::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.mc-footer__logo-image { filter: brightness(0) invert(1); opacity: 0.92; }
.mc-footer__logo:hover .mc-footer__logo-image { opacity: 1; }
.mc-hero--panel .mc-hero__inner { max-width: 420px; }
.mc-hero--panel .mc-hero__scrim { background: var(--surface-raised); }
.mc-header__nav { display: flex; align-items: center; gap: var(--space-5); flex-wrap: nowrap; }
.mc-header__nav .mc-header__list { flex-wrap: nowrap; align-items: stretch; }
.mc-header__nav .mc-header__item { display: flex; }
.mc-header__nav .mc-header__link {
  display: inline-flex; align-items: center; padding: var(--space-2) 0; min-height: 44px;
  border-bottom: 3px solid transparent;
}

/* Contact form inline confirmation message (new: no backend, so no fake success animation) */
.mc-form-note {
  margin: 0;
  padding: var(--space-4);
  background: var(--surface-sunken);
  border-radius: var(--radius-field);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
}

@media (max-width: 1023px) {
  .mc-heading__title { font-size: 32px; line-height: 40.64px; }
  .mc-service__title { font-size: 28px; line-height: 35px; }
}
@media (max-width: 1044px) {
  .mc-header__nav { display: none; }
  .mc-nav-toggle { display: inline-flex; }
  .mc-header__bar { gap: var(--space-4); justify-content: space-between; }
  .mc-header__logo-image { width: 62px; height: 70px; }
}
@media (max-width: 599px) {
  .mc-hero__title { font-size: 22px; line-height: 27.94px; }
  .mc-hero--panel .mc-hero__scrim { padding: var(--space-5) var(--space-4); }
  .mc-hero { min-height: 420px; }
  .mc-btn--md { width: 100%; }
}
@media (max-width: 480px) {
  .mc-header__bar { padding: var(--space-2) var(--space-3); gap: var(--space-2); }
  .mc-header__end { gap: var(--space-2) !important; }
  .mc-header__quote { display: none; }
  .mc-header__logo-image { width: 52px; height: 58px; }
}
