/* =========================================================================
   ROWLAND CHAMBERS & CO. — DESIGN SYSTEM
   Palette:  navy #0F2438 / navy-light #16324F / brass #A9803D
             parchment #F6F3EC / ink #22262B / sage #4B5D52 / line #D9D2C2
   Type:     Georgia (display/serif) + Segoe UI system stack (body)
   ========================================================================= */

:root {
  --navy: #0F2438;
  --navy-light: #16324F;
  --brass: #A9803D;
  --brass-light: #C79A52;
  --parchment: #F6F3EC;
  --ink: #22262B;
  --sage: #4B5D52;
  --line: #D9D2C2;
  --white: #FFFFFF;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- Top utility bar ---- */
.topbar {
  background: var(--navy);
  color: #D8DEE4;
  font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #D8DEE4; text-decoration: none; }
.topbar svg { width: 14px; height: 14px; vertical-align: -2px; }
.topbar a:hover { color: var(--brass-light); }
.topbar .sep { opacity: .4; margin: 0 8px; }

/* ---- Header / nav ---- */
header.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; flex: none; }

nav.primary-nav { display: flex; gap: 6px; align-items: center; }
nav.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
  padding: 10px 14px;
  border-radius: 2px;
  position: relative;
}
nav.primary-nav a:hover { color: var(--navy); }
nav.primary-nav a.active { color: var(--navy); font-weight: 700; }
nav.primary-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--brass);
}
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 2px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--navy-light); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 42px; height: 38px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); margin: 4px auto; }

/* ---- Hero slider ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero-track { position: relative; min-height: 520px; }
.hero-slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
  padding: 64px 0;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero-copy .eyebrow {
  font-family: var(--serif);
  color: var(--brass-light);
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.hero-copy h1 { color: var(--white); }
.hero-copy p { color: #C9D2DA; font-size: 1.08rem; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.hero-art svg { width: 260px; height: 260px; }
.btn {
  display: inline-block;
  background: var(--brass);
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 2px;
  border: 1px solid var(--brass);
  cursor: pointer;
  font-size: .98rem;
  font-family: var(--sans);
}
.btn:hover { background: var(--brass-light); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.5);
}
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); }

.hero-nav {
  position: absolute; bottom: 26px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px;
  z-index: 5;
}
.hero-nav button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--brass-light);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-nav button.is-active { background: var(--brass-light); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.35);
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 5;
}
.hero-arrow:hover { background: rgba(255,255,255,.2); }
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }

/* ---- Stats strip ---- */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 24px; }
.stat-figure { font-family: var(--serif); font-size: 2rem; color: var(--brass); font-weight: 700; }
.stat-label { font-size: .85rem; color: var(--sage); }

/* ---- Generic section headers ---- */
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker { color: var(--brass); font-family: var(--serif); font-style: italic; margin-bottom: 6px; }

/* ---- Cards / grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.feature {
  border-top: 3px solid var(--brass);
  background: var(--white);
  padding: 28px 24px;
}
.feature svg { width: 40px; height: 40px; margin-bottom: 14px; }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .95rem; color: #4B5259; margin-bottom: 0; }

/* ---- Practice area block ---- */
.practice-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.practice-icon {
  width: 64px; height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.practice-icon svg { width: 30px; height: 30px; }
.practice-block h3 { margin-bottom: 6px; }
.stage-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stage-list li {
  font-size: .82rem;
  background: var(--parchment);
  border: 1px solid var(--line);
  padding: 6px 12px 6px 8px;
  border-radius: 2px;
  color: var(--navy-light);
  display: flex; align-items: center; gap: 6px;
}
.stage-list li .n {
  font-family: var(--serif);
  color: var(--brass);
  font-weight: 700;
}

/* ---- Team ---- */
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px;
  text-align: left;
}
.avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--brass-light);
  font-family: var(--serif);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.team-card .role { color: var(--sage); font-size: .85rem; margin-bottom: 10px; }
.team-card p:last-child { font-size: .92rem; margin-bottom: 0; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C9D2DA; margin: 0 auto 24px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Contact page ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.info-row { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.info-row svg { width: 24px; height: 24px; flex: none; color: var(--brass); }
.info-row h4 { margin: 0 0 4px; font-family: var(--sans); font-size: .95rem; text-transform: none; color: var(--navy); }
.info-row p { margin: 0; font-size: .92rem; color: #4B5259; }
form.enquiry { display: flex; flex-direction: column; gap: 14px; }
form.enquiry label { font-size: .85rem; font-weight: 600; color: var(--navy); }
form.enquiry input, form.enquiry select, form.enquiry textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: .95rem;
  background: var(--white);
}
form.enquiry textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--sage); }
.map-box {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
  overflow: hidden;
}
.map-box svg { width: 100%; height: 220px; }
.map-box iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---- About / values ---- */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item::before {
  content: "";
  position: absolute; left: -34px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brass);
  border: 2px solid var(--parchment);
}
.timeline-item h4 { margin: 0 0 4px; font-family: var(--serif); color: var(--navy); }
.timeline-item p { margin: 0; font-size: .92rem; color: #4B5259; }

.value-block { display: flex; gap: 16px; margin-bottom: 26px; }
.value-block svg { width: 30px; height: 30px; flex: none; color: var(--brass); }
.value-block h4 { margin: 0 0 4px; }
.value-block p { margin: 0; font-size: .92rem; color: #4B5259; }

/* ---- Footer ---- */
footer.site-footer { background: var(--navy); color: #C9D2DA; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 32px; }
.footer-grid h5 { color: var(--white); font-family: var(--serif); font-size: 1rem; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: .9rem; }
.footer-grid a { color: #C9D2DA; text-decoration: none; }
.footer-grid a:hover { color: var(--brass-light); }
.footer-brand p { color: #AEB9C2; font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 0;
  font-size: .8rem;
  color: #9BA8B2;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---- Page hero (non-home pages) ---- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 64px;
}
.page-hero p { color: #C9D2DA; }
.breadcrumb { font-size: .82rem; color: var(--brass-light); margin-bottom: 10px; }

/* ---- Utility ---- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--brass); color: var(--navy);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }
.offline-note {
  background: #EFE7D4;
  border: 1px solid var(--line);
  color: var(--navy-light);
  font-size: .82rem;
  padding: 10px 16px;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-slide { grid-template-columns: 1fr; text-align: center; padding: 48px 0 88px; }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art svg { width: 180px; height: 180px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .brand-logo { height: 38px; }
}
@media (max-width: 720px) {
  nav.primary-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    padding: 8px;
  }
  nav.primary-nav.is-open { display: flex; }
  nav.primary-nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .practice-block { grid-template-columns: 56px 1fr; }
  .practice-icon { width: 48px; height: 48px; }
  .practice-icon svg { width: 22px; height: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 40px 0 24px; }
  section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .stats .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: stretch; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}
