/* RWA Chartered Professional Accountants LLP — landing page */

:root {
  --cream: #f7f5ef;
  --sand: #eae7de;
  --rule: #d4d2c9;
  --ink: #282926;
  --muted: #666760;
  --brand: #9b293a;
  --brand-dark: #7e1f2e;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1140px;
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, address { margin: 0; }
address { font-style: normal; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 2rem + 1.6vw, 44px);
  line-height: 1.25;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--brand);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  position: relative;
  z-index: 2;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  min-height: 96px;
}
.logo img { width: 340px; }
.header-contact {
  display: flex;
  gap: 32px;
  font-size: 14px;
  line-height: normal;
}
.header-contact a { text-decoration: none; }
.header-contact a:hover,
.header-contact a:focus-visible { color: var(--brand); text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 704px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to right, rgba(247, 245, 239, 0.9) 50.481%, rgba(247, 245, 239, 0) 100%);
}
.hero-inner { padding-top: 64px; padding-bottom: 64px; }
.hero-copy {
  max-width: 789px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-text {
  max-width: 765px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.btn:hover,
.btn:focus-visible { background: var(--brand-dark); }

/* ---------- Industries ---------- */
.industries { padding: 96px 0; }
.industries-inner {
  display: grid;
  grid-template-columns: 480px 580px;
  justify-content: space-between;
  gap: 80px;
  align-items: start;
}
.industries-overview {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.industries-overview > p { color: var(--muted); }

.industry-list {
  list-style: none;
  padding: 8px 0 0;
}
.industry-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 0;
  border-top: 1px solid var(--rule);
  line-height: normal;
}
.industry-list li:last-child { border-bottom: 1px solid var(--rule); }
.industry-list li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--brand);
}

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 708px;
}
.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.collage-wide { grid-column: 1 / span 2; }

/* ---------- Contact ---------- */
.contact {
  background: var(--sand);
  padding: 96px 0 64px;
}
.contact h2 { margin-bottom: 40px; }

.contact-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px 94px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info a { text-decoration: none; line-height: normal; }
.contact-phone {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
}
.contact-email {
  font-size: 27px;
  color: var(--brand);
}
.contact-info a:hover,
.contact-info a:focus-visible { text-decoration: underline; }
.contact-info address { color: var(--muted); }
.contact-fax { color: var(--muted); line-height: normal; margin-top: -12px; }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 3px;
  min-width: 0;
}

.hours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 237px));
  gap: 32px 56px;
}
.hours-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  font-size: 14px;
  color: var(--muted);
}
.hours-col h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  color: var(--ink);
}
.hours-time {
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: normal;
}
.hours-range { font-size: 17px; color: var(--ink); }

.links-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.helpful-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.helpful-links li:not(:last-child)::after {
  content: "|";
  margin: 0 20px;
}
.helpful-links a:hover,
.helpful-links a:focus-visible { color: var(--brand); }

.name-change {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer { padding: 32px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 11px;
  line-height: normal;
  color: var(--muted);
}
.footer-inner a { text-decoration: none; }
.footer-inner a:hover,
.footer-inner a:focus-visible { text-decoration: underline; }

/* Focus ring */
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .industries-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; }
  .collage { height: auto; aspect-ratio: 580 / 708; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero { min-height: 600px; }
  .hero::after {
    background: linear-gradient(to right, rgba(247, 245, 239, 0.92) 60%, rgba(247, 245, 239, 0.55) 100%);
  }
  .industries { padding: 72px 0; }
  .industries-inner { grid-template-columns: 1fr; gap: 48px; }
  .collage { max-width: 640px; }
  .contact { padding: 72px 0 56px; }
  .hours { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .br-desktop { display: none; }
  .header-inner { flex-direction: column; align-items: flex-start; padding-top: 20px; padding-bottom: 20px; min-height: 0; gap: 12px; }
  .logo img { width: 260px; }
  .header-contact { gap: 20px; display:none; }
  .hero { min-height: 0; }
  .hero::after { background: rgba(247, 245, 239, 0.88); }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .hero-copy { gap: 20px; }
  .hero-text { gap: 20px; }
  .industries { padding: 56px 0; }
  .industry-list li { padding: 16px 0; }
  .collage { gap: 6px; }
  .contact { padding: 56px 0 48px; }
  .contact h2 { margin-bottom: 28px; }
  .contact-phone { font-size: 28px; }
  .contact-email { font-size: 22px; }
  .hours { grid-template-columns: 1fr; gap: 28px; }
  .helpful-links { flex-direction: column; gap: 8px; }
  .helpful-links li:not(:last-child)::after { content: none; }
  .footer-inner { flex-direction: column; }
}
