/* Jeff the Maytag Man — maytagisrael.com */
:root {
  --paper: #f4ecd8;
  --paper-dark: #e9dcbc;
  --ink: #2b2620;
  --ink-soft: #5a5145;
  --accent: #1f3a5f;
  --accent-light: #2f5687;
  --rule: #c9b88f;
  --max: 1080px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
}

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

a { color: var(--accent); text-underline-offset: 3px; }
a:hover, a:focus { color: var(--accent-light); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  background: var(--accent);
  color: #fff;
  border-bottom: 4px double var(--paper-dark);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .75rem 1.5rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand {
  color: #fff; text-decoration: none;
  font-family: var(--display);
  line-height: 1.15;
}
.brand-name { display: block; font-size: 1.6rem; letter-spacing: .02em; }
.brand-tag {
  display: block; font-size: .8rem; letter-spacing: .18em;
  text-transform: uppercase; opacity: .85; margin-top: .2rem;
}
.brand:hover, .brand:focus { color: #fff; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem;
}
.site-nav a {
  display: block; padding: .45rem .9rem;
  color: #fff; text-decoration: none;
  font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 3px;
}
.site-nav a:hover, .site-nav a:focus { border-color: rgba(255,255,255,.5); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--paper); color: var(--accent); }

/* Main */
main { padding: 2.5rem 0 3rem; }

h1, h2, h3 { font-family: var(--display); color: var(--accent); line-height: 1.2; font-weight: normal; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin: 0 0 .25rem; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); margin: 2rem 0 .5rem; }
.kicker {
  margin: 0 0 1.5rem; color: var(--ink-soft);
  font-style: italic; font-size: 1.15rem;
}
p { margin: 0 0 1.1rem; }

.ornament {
  border: 0; height: 1px; background: var(--rule);
  margin: 2rem 0; position: relative; overflow: visible;
}
.ornament::after {
  content: "\2766"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -55%);
  background: var(--paper); color: var(--rule); padding: 0 .75rem; font-size: 1.2rem;
}

/* Two-column layout */
.split {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
}
.split--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }

.figure { margin: 0; position: sticky; top: 1.5rem; }
.figure img {
  border: 1px solid var(--rule);
  box-shadow: 0 2px 0 var(--paper-dark), 0 10px 24px rgba(43,38,32,.12);
}
.figure figcaption {
  font-size: .8rem; color: var(--ink-soft); margin-top: .6rem; line-height: 1.5;
}

/* Boxes */
.card {
  background: #fbf6ea; border: 1px solid var(--rule);
  border-radius: 4px; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.card h2, .card h3 { margin-top: 0; }

.pull {
  font-family: var(--display); font-size: 1.25rem; font-style: italic;
  color: var(--accent); border-left: 3px solid var(--accent);
  padding: .25rem 0 .25rem 1rem; margin: 1.75rem 0;
}

.btn {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; padding: .7rem 1.3rem; border-radius: 3px;
  letter-spacing: .05em; font-size: .95rem; margin: .25rem .5rem .25rem 0;
}
.btn:hover, .btn:focus { background: var(--accent-light); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn--ghost:hover, .btn--ghost:focus { background: var(--accent); color: #fff; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: grid; grid-template-columns: 6.5rem 1fr; gap: .5rem;
  padding: .85rem 0; border-bottom: 1px dotted var(--rule);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .label {
  text-transform: uppercase; letter-spacing: .12em; font-size: .8rem;
  color: var(--ink-soft); padding-top: .2rem;
}
.contact-list a { font-size: 1.1rem; word-break: break-word; }

.cta {
  background: var(--accent); color: #fff; padding: 1.5rem;
  border-radius: 4px; margin-top: 2rem;
}
.cta h2 { color: #fff; margin-top: 0; }
.cta a { color: #fff; }
.cta .btn { background: var(--paper); color: var(--accent); }
.cta .btn:hover, .cta .btn:focus { background: #fff; color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule); background: var(--paper-dark);
  font-size: .9rem; color: var(--ink-soft); padding: 1.5rem 0;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
}
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 820px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 1.75rem; }
  .figure { position: static; max-width: 420px; margin: 0 auto; }
  .split--reverse .figure { order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: space-between; }
  .site-nav a { padding: .45rem .6rem; font-size: .85rem; }
  main { padding-top: 1.75rem; }
  .contact-list li { grid-template-columns: 1fr; gap: .1rem; }
  .card { padding: 1rem 1.1rem; }
  .figure { max-width: 300px; }
}

@media print {
  .site-nav, .skip-link { display: none; }
  .site-header { background: none; color: var(--ink); }
  .brand { color: var(--ink); }
}

/* ---------- Footer links ---------- */
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-links [hidden] { display: none; }
.site-footer .wrap { align-items: center; }
.footer-bottom { flex-basis: 100%; font-size: .8rem; }

/* ---------- Policy pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.25rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .4rem; }
.updated { color: var(--ink-soft); font-size: .9rem; }
.status-note { font-weight: bold; }
.placeholder { background: #fff3b0; padding: 0 .2em; }

/* ---------- Accessibility toolbar ---------- */
.a11y { position: fixed; left: 1rem; bottom: 1rem; z-index: 50; font-family: var(--serif); }
.a11y-toggle {
  display: flex; align-items: center; gap: .4rem;
  background: var(--accent); color: #fff; border: 2px solid #fff;
  border-radius: 999px; padding: .5rem .9rem .5rem .6rem; cursor: pointer;
  font: inherit; font-size: .9rem; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.a11y-toggle:hover, .a11y-toggle:focus-visible { background: var(--accent-light); }
.a11y-panel {
  position: absolute; left: 0; bottom: calc(100% + .6rem);
  width: 16.5rem; max-width: calc(100vw - 2rem);
  background: #fff; color: var(--ink); border: 2px solid var(--accent);
  border-radius: 6px; padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.a11y-title { font-size: 1.1rem; margin: 0 0 .75rem; color: var(--accent); }
.a11y-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; gap: .5rem; }
.a11y-pair { display: flex; gap: .35rem; }
.a11y-panel button {
  font: inherit; font-size: .95rem; cursor: pointer;
  border: 1px solid var(--accent); background: #fff; color: var(--accent);
  border-radius: 3px; padding: .4rem .7rem;
}
.a11y-opt, .a11y-reset { display: block; width: 100%; text-align: left; margin-bottom: .4rem; }
.a11y-opt[aria-pressed="true"] { background: var(--accent); color: #fff; }
.a11y-opt[aria-pressed="true"]::after { content: " \2713"; }
.a11y-reset { text-align: center; border-style: dashed !important; }
.a11y-note { margin: .5rem 0 0; font-size: .85rem; }
.a11y-panel button:hover, .a11y-panel button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Visible focus everywhere */
:focus-visible { outline: 3px solid #e0a100; outline-offset: 2px; }

/* Modes set by the toolbar */
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; background: #fff3b0 !important; color: #000 !important; }
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3,
html.a11y-font .brand, html.a11y-font .pull, html.a11y-font .a11y-panel button {
  font-family: Verdana, Arial, Helvetica, sans-serif !important; font-style: normal !important;
  letter-spacing: .02em;
}
html.a11y-contrast body, html.a11y-contrast .site-header, html.a11y-contrast .site-footer,
html.a11y-contrast .card, html.a11y-contrast .cta, html.a11y-contrast .ornament::after,
html.a11y-contrast .a11y-panel, html.a11y-contrast .cookie-banner {
  background: #000 !important; color: #fff !important; border-color: #fff !important;
}
html.a11y-contrast h1, html.a11y-contrast h2, html.a11y-contrast h3,
html.a11y-contrast .kicker, html.a11y-contrast .pull, html.a11y-contrast figcaption,
html.a11y-contrast .updated, html.a11y-contrast .label, html.a11y-contrast .brand,
html.a11y-contrast .site-footer { color: #fff !important; border-color: #fff !important; }
html.a11y-contrast a { color: #ffeb3b !important; }
html.a11y-contrast .btn, html.a11y-contrast .site-nav a[aria-current="page"],
html.a11y-contrast .a11y-panel button, html.a11y-contrast .a11y-toggle {
  background: #000 !important; color: #ffeb3b !important; border: 2px solid #ffeb3b !important;
}
html.a11y-contrast .a11y-opt[aria-pressed="true"] { background: #ffeb3b !important; color: #000 !important; }
html.a11y-contrast .figure img { filter: contrast(1.2); }
html.a11y-contrast .placeholder { background: #444; }

/* ---------- Cookie banner (only shown if cookies are enabled) ---------- */
.cookie-banner {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 24rem; max-width: calc(100vw - 2rem);
  background: #fff; color: var(--ink); border: 2px solid var(--accent);
  border-radius: 6px; padding: 1rem 1.1rem; box-shadow: 0 8px 24px rgba(0,0,0,.2);
  font-size: .95rem;
}
.cookie-banner p { margin: 0 0 .75rem; }
.cookie-actions .btn { margin: 0 .5rem 0 0; }

@media (max-width: 560px) {
  .a11y-toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .a11y-toggle { padding: .55rem; }
  .cookie-banner { left: 1rem; right: 1rem; bottom: 4.5rem; width: auto; }
  .site-footer { padding-bottom: 4.5rem; }
}
@media print { .a11y, .cookie-banner { display: none; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
