/*
 * Brand component CSS.
 *
 * Holds layout helpers and the small set of CSS classes the FSE patterns rely
 * on (buttons, section shells, eyebrow). Full pattern CSS arrives per-pattern
 * during M3 — this file is the shared base.
 */

/* ===== Container shell ===== */
.mtu-shell {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--mtu-shell-padding);
}

.mtu-shell--wide {
  max-width: var(--container-wide);
}

/* ===== Section ===== */
.mtu-section {
  padding-top: var(--mtu-section-space);
  padding-bottom: var(--mtu-section-space);
  position: relative;
}

.mtu-section--tight {
  padding-top: var(--space-9xl);
  padding-bottom: var(--space-9xl);
}

.mtu-section--dark {
  background: var(--mtu-black);
  color: var(--mtu-white);
}
.mtu-section--dark h1,
.mtu-section--dark h2,
.mtu-section--dark h3,
.mtu-section--dark h4,
.mtu-section--dark h5,
.mtu-section--dark h6 {
  color: var(--mtu-white);
}

/* ===== Buttons =====
 * .mtu-btn primary/ghost rules live in sections.css (ported from the design).
 * The core/button bridge for is-style-primary/ghost/outline lives below.
 */
.is-style-primary > .wp-block-button__link {
  background: var(--mtu-yellow);
  color: var(--mtu-black);
  border: 2px solid var(--mtu-yellow);
  border-radius: 0;
}
.is-style-primary > .wp-block-button__link:hover {
  background: var(--mtu-yellow-hover);
  border-color: var(--mtu-yellow-hover);
}

.is-style-ghost > .wp-block-button__link {
  background: transparent;
  color: var(--mtu-white);
  border: 2px solid var(--mtu-yellow);
  border-radius: 0;
}
.is-style-ghost > .wp-block-button__link:hover {
  background: rgba(241, 180, 52, 0.15);
}

.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--mtu-black);
  border: 2px solid var(--mtu-black);
  border-radius: 0;
}
.is-style-outline > .wp-block-button__link:hover {
  background: var(--mtu-black);
  color: var(--mtu-white);
}

/* ===== Block style: section-shell ===== */
.wp-block-group.is-style-section-shell {
  padding-top: var(--mtu-section-space);
  padding-bottom: var(--mtu-section-space);
}

/* ===== Block style: border-card ===== */
.wp-block-group.is-style-border-card {
  border: var(--bw-default) solid var(--mtu-black);
  padding: var(--space-7xl);
  background: var(--mtu-white);
}

/* ===== Block style: dark-section ===== */
.wp-block-group.is-style-dark-section {
  background: var(--mtu-black);
  color: var(--mtu-white);
}

/* ===== Forms (overrides for existing sscope-form markup) ===== */
.sscope-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}
.sscope-form .is-full {
  grid-column: 1 / -1;
}
.sscope-form label {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.sscope-form label > span {
  font-family: var(--font-heading);
  font-size: var(--font-text-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
}
.sscope-form input[type="text"],
.sscope-form input[type="email"],
.sscope-form input[type="tel"],
.sscope-form textarea {
  background: var(--mtu-white);
  border: var(--bw-default) solid var(--mtu-black);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: var(--font-text-md);
  padding: 12px 14px;
  color: var(--mtu-ink);
  transition: border-color var(--dur-base) var(--ease-out);
}
.sscope-form input:focus,
.sscope-form textarea:focus {
  outline: none;
  border-color: var(--mtu-yellow);
}
.sscope-form textarea {
  resize: vertical;
  min-height: 120px;
}
.sscope-form button[type="submit"] {
  background: var(--mtu-yellow);
  color: var(--mtu-black);
  border: var(--bw-default) solid var(--mtu-yellow);
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out);
  justify-self: start;
}
.sscope-form button[type="submit"]:hover {
  background: var(--mtu-yellow-hover);
  border-color: var(--mtu-yellow-hover);
}
.sscope-form-checkbox {
  flex-direction: row !important;
  align-items: flex-start;
  gap: var(--space-md);
}
.sscope-form-checkbox > span {
  text-transform: none !important;
  letter-spacing: var(--ls-normal) !important;
  font-family: var(--font-body) !important;
  font-weight: var(--fw-body) !important;
}
.sscope-form-notice {
  grid-column: 1 / -1;
  padding: var(--space-md) var(--space-lg);
  border: var(--bw-default) solid var(--mtu-fog);
  font-size: var(--font-text-sm);
}
.sscope-form-notice.is-success { border-color: var(--mtu-yellow); background: var(--mtu-yellow-soft); }
.sscope-form-notice.is-error   { border-color: #B00020; color: #B00020; }

@media (max-width: 781px) {
  .sscope-form { grid-template-columns: 1fr; }
}

/* ===== Skip link ===== */
.sscope-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mtu-yellow);
  color: var(--mtu-black);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  text-decoration: none;
  z-index: var(--z-modal);
}
.sscope-skip-link:focus {
  left: var(--space-lg);
  top: var(--space-lg);
}

/* Obfuscated email links: the "@" lives in CSS, not in the HTML. */
.mtu-at::after { content: "@"; }
