/* Rutherford Robertson, P.A. - shared stylesheet (tokens + chrome). Owned by orchestrator. */

:root {
  --gold: #cfb52c;
  --gold-dark: #b89f22;
  --cream: #f8f4e0;
  --cream-2: #f3eecf;
  --black: #000000;
  --near-black: #111111;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #595959;
  --line: #e3ddc4;

  --font-head: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body: 'Kumbh Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --container: 1180px;
  --radius: 2px;
  --shadow: 0 10px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.5em;
  color: var(--text);
}

p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold {
  background: var(--gold);
  color: #1a1a1a;
}
.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
}
.topbar {
  background: var(--cream);
  font-size: 13px;
  color: #333;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #333; }
.topbar a:hover { color: var(--gold-dark); }
.topbar .sep { color: #999; }

.navbar { background: var(--white); border-bottom: 1px solid #f0f0f0; }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo img { width: 216px; height: auto; }

.mainnav { display: flex; align-items: center; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: var(--font-body);
  cursor: pointer;
}
.navmenu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.navmenu > li { position: relative; }
.navmenu > li > a {
  font-size: 16px;
  color: #1a1a1a;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.navmenu > li > a:hover,
.navmenu > li > a.active,
.navmenu > li > a[aria-current="page"] {
  color: var(--gold);
}

/* dropdown */
.has-dropdown > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown li a {
  display: block;
  padding: 9px 22px;
  font-size: 15px;
  white-space: nowrap;
  color: #333;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown li a:hover { background: var(--cream); color: var(--gold-dark); }

/* ---------- Generic sections ---------- */
.section { padding: 70px 0; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-black { background: var(--black); color: var(--white); }
.section-black h1, .section-black h2, .section-black h3 { color: var(--white); }

.eyebrow, .accent-title { color: var(--gold); }

/* inner page hero (black band with gold serif title over dark photo) */
.page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #000;
  overflow: hidden;
}
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.page-hero .hero-inner { position: relative; z-index: 2; padding: 60px 24px; }
.page-hero h1 {
  color: var(--gold);
  font-size: clamp(38px, 6vw, 60px);
  margin: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--white); padding-top: 40px; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-logo img { width: 190px; height: auto; }
.site-footer hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 30px auto;
  max-width: var(--container);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-cols h4 {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 14px;
}
.footer-cols p { color: var(--text); font-size: 15px; }
.footer-cols ul { list-style: disc; padding-left: 18px; margin: 0; }
.footer-cols ul li { margin-bottom: 10px; }
.footer-cols ul li a { color: #1a1a1a; }
.footer-cols ul li a:hover { color: var(--gold-dark); }
.footer-cols .contact-line { margin-bottom: 14px; font-size: 15px; }
.footer-cols .contact-line span { display: block; }
.footer-cols a { transition: color 0.2s ease; }
.copyright {
  background: var(--gold);
  color: #1a1a1a;
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #1a1a1a;
}
.form-field .req { color: var(--gold-dark); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(207,181,44,0.18);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Motion ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.anim-up { animation: fadeInUp 0.8s ease both; }
.anim-in { animation: fadeIn 1s ease both; }
.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }

/* Scroll reveal: elements start VISIBLE; the shared script adds .reveal-init
   at runtime (only after the observer attaches) to enable the transition.
   No hidden state ever lives in CSS. */
.reveal-init.reveal { opacity: 0; transform: translateY(28px); }
.reveal-init.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal-init.reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
  .nav-toggle { display: block; }
  .navmenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 0;
  }
  .navmenu.open { display: flex; }
  .navmenu > li > a { display: block; padding: 12px 24px; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--gold);
    margin: 0 0 6px 24px;
    padding: 0;
  }
  .has-dropdown > a::after { display: none; }
}
