/* =========================================================
   WebEmpire – one-page contact / about
   Palette: black, white, gold, #f5f5f5
   ========================================================= */
:root {
  --black: #000000;
  --white: #ffffff;
  --gold: #c9a24b;
  --gold-light: #e2c47c;
  --soft: #f5f5f5;
  --ink: #000000;
  --muted: #555555;
  --line: #e2e2e2;
  --font: "Heebo", "Segoe UI", Arial, sans-serif;
  --wrap: 1100px;
  --zoom: 1;
}

* { box-sizing: border-box; }
html { font-size: calc(100% * var(--zoom)); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 500; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; right: 1rem; background: var(--gold); color: var(--black); padding: .5rem 1rem; z-index: 999; }
.skip-link:focus { top: .5rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--black); border-bottom: 3px solid var(--gold); }
.header-inner { display: flex; justify-content: center; align-items: center; padding-block: 1.6rem; }
.logo img { height: 72px; width: auto; }

/* ---------- Contact ---------- */
.contact { background: var(--soft); padding-block: clamp(3rem, 7vw, 5rem); }
.contact-head { display: flex; align-items: flex-start; gap: .9rem; }
.contact-icon { width: auto; max-height: 40px; margin-top: .35rem; }
.contact-list { margin: 0; display: flex; flex-wrap: wrap; gap: 1rem 3.5rem; }
.contact-item dt { color: var(--muted); font-size: .9rem; margin-bottom: .15rem; }
.contact-item dd { margin: 0; font-size: 1.2rem; font-weight: 300; }
.contact-item dd strong { font-weight: 400; }
.contact-item a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-item a:hover { border-bottom-color: var(--gold); }

/* ---------- Section titles ---------- */
.section-title { font-weight: 300; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.2; margin: 0 0 2rem; }
.section-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-top: .8rem; }

/* ---------- Customers ---------- */
.customers { background: var(--white); padding-block: 0 clamp(3rem, 7vw, 5rem); }
.customers-frame { padding: clamp(1rem, 3vw, 2rem); }
.customers-frame img { margin-inline: auto; }

/* ---------- About ---------- */
.about { background: var(--white); padding-block: clamp(3rem, 7vw, 5rem); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-text p { margin: 0 0 1.25rem; max-width: 62ch; }
.about-lead { font-size: 1.25rem; }
.about-quote { font-size: 1.35rem; font-weight: 500; padding-inline-start: 1rem; border-inline-start: 3px solid var(--gold); }
.about-img { margin: 0; }
.about-img img { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfcfcf; padding-block: 2.25rem; font-size: .95rem; }
.footer-inner { display: flex; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-logo { margin-inline-start: auto; width: 19px; height: 19px; }
.footer-brand { margin: 0; }
.footer-brand strong { color: #b7a363; font-weight: 500; letter-spacing: .04em; }
.footer-link { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--gold); }
.footer-link:hover { color: var(--gold-light); }
.footer-copy { margin: 0; }

/* ---------- Accessibility widget ---------- */
.a11y { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 80; }
.a11y-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold); background: var(--black); color: var(--white); padding: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.a11y-btn svg { width: 100%; height: 100%; display: block; }
.a11y-panel { position: absolute; bottom: 56px; left: 0; width: 230px; background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 14px 40px rgba(0,0,0,.25); padding: .7rem; border-radius: 8px; }
.a11y-panel[hidden] { display: none; }
.a11y-panel button, .a11y-panel a { display: block; width: 100%; text-align: start; padding: .5rem .7rem; margin-bottom: .25rem; background: var(--soft); border: 1px solid transparent; border-radius: 6px; color: var(--black); text-decoration: none; font-size: .95rem; }
.a11y-panel button:hover, .a11y-panel a:hover { border-color: var(--gold); }
.a11y-panel button[aria-pressed="true"] { border-color: var(--gold); background: #fbf5e6; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; width: 100%; max-width: min(760px, 100% - 1.5rem); max-height: 90vh; }
.modal::backdrop { background: rgba(0,0,0,.75); }
.modal-box { background: var(--white); border-top: 4px solid var(--gold); max-height: 90vh; overflow-y: auto; padding: clamp(1.5rem, 4vw, 2.5rem); }
.modal[open] .modal-box { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close { float: left; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--soft); font-size: 1.6rem; line-height: 1; margin: -.5rem -.5rem 0 0; }
.modal-close:hover { background: var(--gold); }
.modal-body h2 { font-weight: 300; font-size: 2rem; margin: 0 0 1rem; }
.modal-body p { margin: 0 0 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .footer-logo { margin-inline-start: 0; }
}
@media (max-width: 520px) {
  .logo img { height: 50px; }
}

/* ---------- Accessibility modes ---------- */
body.hc { --gold: #ffff00; --gold-light: #ffff00; --soft: #000; --white: #000; --black: #000; --ink: #fff; --muted: #fff; --line: #fff; }
body.hc, body.hc .site-header, body.hc .modal-box, body.hc .a11y-panel { color: #fff; }
body.hc a, body.hc .a11y-panel button, body.hc .a11y-panel a { color: #ffff00 !important; }
body.hc .customers-frame { background: #fff; }
body.hc .a11y-panel button, body.hc .a11y-panel a { border-color: #fff; }
body.kbd *:focus { outline: 4px solid #ff6a00 !important; outline-offset: 3px !important; }
body.kbd a, body.kbd button { text-decoration: underline; }
