/*
  Shared styles for Miller's Marketing Group sub-pages (FAQ, legal,
  accessibility). The homepage (index.html) keeps its own inline styles;
  this stylesheet provides the common shell — tokens, header, footer,
  buttons — plus the prose and FAQ components the content pages need.
*/

:root {
  --red: #a52e2a;
  --red-dark: #76211f;
  --coral: #d5523f;
  --gold: #f2c94c;
  --mango: #d99a28;
  --cream: #fff7e8;
  --paper: #fffdf8;
  --sand: #eadbc4;
  --sand-light: #f4eadd;
  --espresso: #261d19;
  --muted: #6c5e56;
  --teal: #2e7772;
  --teal-dark: #195651;
  --line: rgba(38, 29, 25, 0.13);
  --shadow: 0 24px 70px rgba(75, 38, 27, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--espresso);
  background: var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

.container {
  width: min(960px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--red-dark);
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

/* Header -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(38, 29, 25, 0.08);
  background: rgba(255, 247, 232, 0.9);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: max-content;
}

.brand-logo {
  width: 50px;
  height: 50px;
  padding: 0.3rem;
  border-radius: 14px;
  object-fit: contain;
  background: var(--red);
  box-shadow: 0 10px 30px rgba(165, 46, 42, 0.24);
}

.brand-copy {
  display: grid;
  gap: 0.05rem;
}

.brand-copy strong {
  font-size: 0.98rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-copy small {
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav > a:not(.button) {
  font-size: 0.9rem;
  font-weight: 600;
}

.nav > a:not(.button):hover {
  color: var(--red);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 30px rgba(165, 46, 42, 0.22);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-secondary {
  border-color: rgba(38, 29, 25, 0.18);
  background: rgba(255, 253, 248, 0.72);
}

.button-secondary:hover {
  background: #fff;
  box-shadow: 0 12px 28px rgba(75, 38, 27, 0.1);
}

.arrow {
  font-size: 1.15em;
  line-height: 1;
}

/* Page hero ----------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3.6rem 0 3rem;
  background:
    radial-gradient(circle at 88% 20%, rgba(242, 201, 76, 0.28), transparent 30%),
    radial-gradient(circle at 10% 90%, rgba(213, 82, 63, 0.1), transparent 26%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: var(--gold);
}

.page-hero h1 {
  max-width: 18ch;
  margin: 1rem 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-hero .lead {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.breadcrumb {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--red);
}

/* Content / prose ----------------------------------------------------- */

.content {
  padding: 3.4rem 0 4.5rem;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin: 2.4rem 0 0.8rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.updated {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--red-dark);
  background: rgba(242, 201, 76, 0.28);
  font-size: 0.78rem;
  font-weight: 700;
}

.notice {
  margin: 1.6rem 0;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: var(--sand-light);
  color: var(--espresso);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* FAQ accordion ------------------------------------------------------- */

.faq-list {
  max-width: 760px;
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(75, 38, 27, 0.06);
  overflow: hidden;
  transition: border-color 180ms ease;
}

.faq-item[open] {
  border-color: rgba(165, 46, 42, 0.28);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red-dark);
  background: rgba(242, 201, 76, 0.4);
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  content: "\2212"; /* minus */
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 1.3rem 1.25rem;
}

.faq-item .faq-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

/* Call to action band ------------------------------------------------- */

.cta-band {
  margin: 3.5rem 0 0;
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(242, 201, 76, 0.22), transparent 30%),
    var(--red-dark);
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
}

.cta-band p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.74);
}

.button-light {
  color: var(--red-dark);
  background: var(--gold);
  box-shadow: 0 14px 30px rgba(242, 201, 76, 0.2);
}

/* Footer -------------------------------------------------------------- */

.footer {
  padding: 3.2rem 0 3.5rem;
  color: #fff;
  background: var(--espresso);
}

.footer .container {
  width: min(1180px, calc(100% - 40px));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr;
  gap: 2rem;
}

.footer .brand-copy small {
  color: rgba(255, 255, 255, 0.56);
}

.footer-about {
  max-width: 44ch;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer h3 {
  margin-bottom: 0.85rem;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.footer li,
.footer li a {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.86rem;
  line-height: 1.55;
}

.footer li a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  line-height: 1.55;
}

.footer-bottom span:first-child {
  max-width: 84ch;
}

.footer-credit a {
  color: inherit;
  text-underline-offset: 0.2em;
}

.footer-credit a:hover {
  color: var(--gold);
}

.cookie-consent {
  position: fixed;
  z-index: 80;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 760px;
  margin-inline: auto;
  padding: 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: #fff;
  background: rgba(38, 29, 25, 0.96);
  box-shadow: 0 18px 60px rgba(38, 29, 25, 0.28);
}

.cookie-consent.is-visible {
  display: flex;
}

.cookie-consent p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  line-height: 1.55;
}

.cookie-consent a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent .button {
  min-width: 92px;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

/* Responsive ---------------------------------------------------------- */

@media (max-width: 860px) {
  .nav > a:not(.button) {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .brand-copy small {
    display: none;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .topbar-inner {
    min-height: 66px;
    gap: 0.75rem;
  }

  .topbar .button {
    min-height: 44px;
    padding: 0.6rem 0.9rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .page-hero {
    padding: 2.6rem 0 2.2rem;
  }
}

@media (max-width: 620px) {
  .brand-copy strong {
    font-size: 0.88rem;
  }

  .topbar .button {
    padding: 0.55rem 0.8rem;
    font-size: 0.74rem;
  }

  .topbar .button .arrow {
    display: none;
  }

  .cta-band,
  .footer-bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
