/* O'Connor and Kay, Inc. — site styles */
:root {
  --red: #990000;          /* brand red, from the original site */
  --red-deep: #6E0000;
  --gold: #F2B300;         /* logo gold — decorative only, never text on light */
  --ink: #2A2522;
  --ink-soft: #5A514A;     /* 7.4:1 on paper */
  --paper: #FBF8F3;
  --paper-2: #F3EDE3;
  --line: #E2D9CB;
  --white: #FFFFFF;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.075rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  background: var(--white);
  border-top: 6px solid var(--red);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.brand-name { font: 400 1.45rem/1.1 var(--serif); color: var(--red); display: block; }
.brand-tag { font: 600 .72rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: 4px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site-nav a {
  display: inline-block; padding: 8px 12px; min-height: 36px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 3px;
}
.site-nav a:hover { color: var(--red); background: var(--paper-2); }

/* ---------- hero ---------- */
.hero {
  background:
    linear-gradient(135deg, rgba(110,0,0,.96) 0%, rgba(153,0,0,.92) 60%, rgba(176,18,42,.9) 100%);
  color: var(--white);
  position: relative; overflow: hidden;
}
.hero::after {
  /* echo of the logo's nested squares */
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 340px; height: 340px;
  border: 40px solid rgba(242,179,0,.18); transform: rotate(45deg);
}
.hero .wrap { padding-top: 88px; padding-bottom: 96px; position: relative; z-index: 1; }
.eyebrow { font: 600 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.hero h1 { font: 400 clamp(2.1rem, 5vw, 3.4rem)/1.15 var(--serif); margin: 0 0 22px; max-width: 18ch; }
.hero p { font-size: 1.2rem; max-width: 56ch; margin: 0 0 32px; color: #F6ECEC; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 3px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); font-size: 1rem;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #FFC61A; color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); margin-left: 10px; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-deep); color: var(--white); }

/* ---------- sections ---------- */
section { scroll-margin-top: 90px; }
.section { padding: 84px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font: 400 clamp(1.7rem, 3.4vw, 2.3rem)/1.2 var(--serif); margin: 0 0 12px; color: var(--ink); }
.section h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--gold); margin-top: 16px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; margin: 18px 0 40px; }

.prose { max-width: 70ch; }
.prose p { margin: 0 0 1.1em; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
.facts { list-style: none; margin: 0; padding: 28px; background: var(--paper-2); border-left: 4px solid var(--red); }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts strong { display: block; font: 400 1.6rem/1.2 var(--serif); color: var(--red); }

/* services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 32px; }
.card h3 { font: 400 1.5rem/1.25 var(--serif); margin: 0 0 14px; color: var(--red); }
.card p { margin: 0 0 1em; }
.card ul { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 24px; }
.card li { margin-bottom: 4px; break-inside: avoid; }
blockquote.quote {
  margin: 24px 0 0; padding: 18px 20px; background: var(--white); border-left: 4px solid var(--gold);
  font: italic 400 1.08rem/1.55 var(--serif); color: var(--ink);
}

/* team */
.team { display: grid; gap: 48px; }
.person { max-width: 75ch; padding-left: 28px; border-left: 4px solid var(--gold); }
.person h3 { font: 400 1.65rem/1.2 var(--serif); margin: 0 0 4px; }
.role { font-weight: 700; color: var(--red); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.person p { margin: 0 0 1em; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.office { background: var(--white); border: 1px solid var(--line); padding: 24px 26px; margin-bottom: 20px; }
.office h3 { font: 400 1.25rem/1.3 var(--serif); margin: 0 0 8px; color: var(--red); }
.office address { font-style: normal; margin-bottom: 10px; }
.office dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 0; }
.office dt { font-weight: 700; color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.office dd { margin: 0; }

form.contact { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 32px; }
form.contact h3 { font: 400 1.4rem/1.3 var(--serif); margin: 0 0 6px; }
form.contact .hint { color: var(--ink-soft); margin: 0 0 22px; font-size: .97rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
  border: 1px solid #A89C8C; border-radius: 3px; background: var(--paper);
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); background: var(--white); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status.ok { color: #1E6B34; }
.form-status.err { color: var(--red); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D9D2C9; padding: 48px 0 36px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand { font: 400 1.3rem/1.2 var(--serif); color: var(--white); margin: 0 0 8px; }
.site-footer h4 { margin: 0 0 8px; color: var(--gold); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.site-footer address { font-style: normal; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid #4A423C; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot-legal ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 84px; }
.legal h1 { font: 400 clamp(1.9rem, 4vw, 2.6rem)/1.2 var(--serif); margin: 0 0 24px; }
.back { display: inline-block; margin-bottom: 28px; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .services, .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .person { padding-left: 18px; }
  .wrap { padding: 0 16px; }
  .site-header { position: static; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .btn-ghost { margin: 12px 0 0; }
  .card { padding: 24px; }
  .card ul { columns: 1; }
  .row-2 { grid-template-columns: 1fr; }
  form.contact { padding: 22px; }
}
