/* ============================================================
   ROTHBURY FINANCE — Shared Stylesheet
   Palette: Forest Green / Champagne / Copper
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ── Variables ── */
:root {
  --green:      #0D1F1A;
  --green-mid:  #162E25;
  --green-light:#1E3D30;
  --champagne:  #F5EDD6;
  --champagne-dim: #EDE2C4;
  --copper:     #B87333;
  --copper-light:#C9894A;
  --white:      #FDFAF4;
  --muted:      rgba(245,237,214,0.45);
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'DM Sans', sans-serif;
  --nav-h:      72px;
  --max:        1280px;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--green);
  color: var(--champagne);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { font-size: 0.975rem; color: var(--muted); line-height: 1.8; }

/* ── Copper rule motif ── */
.copper-rule {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}
.copper-rule::before {
  content: '';
  display: block;
  width: 3px;
  height: 28px;
  background: var(--copper);
  flex-shrink: 0;
}
.copper-rule span {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}
.btn-copper {
  background: var(--copper);
  color: var(--green);
  border-color: var(--copper);
}
.btn-copper:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--champagne);
  border-color: rgba(245,237,214,0.4);
}
.btn-outline:hover {
  border-color: var(--champagne);
  background: rgba(245,237,214,0.05);
}
.btn-ghost {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}
.btn-ghost:hover {
  background: var(--copper);
  color: var(--green);
}

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(13,31,26,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,115,51,0.18);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--champagne);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--copper);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,237,214,0.7);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--champagne); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 24px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--champagne);
  transition: all 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--green);
  border-bottom: 1px solid rgba(184,115,51,0.18);
  padding: 32px 40px 40px;
  z-index: 999;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,237,214,0.75);
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,237,214,0.08);
  transition: color 0.2s;
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--champagne); }
.mobile-menu .btn { margin-top: 24px; width: 100%; text-align: center; }

/* ── Page wrapper ── */
.page-top { padding-top: var(--nav-h); }

/* ── Section spacing ── */
.section { padding: 100px 40px; }
.section-inner { max-width: var(--max); margin: 0 auto; }

/* ── Divider line ── */
.copper-divider {
  width: 60px;
  height: 1px;
  background: var(--copper);
  margin: 24px 0;
}

/* ── Footer ── */
footer {
  background: var(--green);
  border-top: 1px solid rgba(184,115,51,0.18);
  padding: 64px 40px 40px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(245,237,214,0.08);
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(245,237,214,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--champagne); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(245,237,214,0.3);
}
.footer-bottom a {
  font-size: 0.75rem;
  color: rgba(245,237,214,0.3);
  transition: color 0.2s;
}
.footer-bottom a:hover { color: var(--copper); }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 100px 40px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(184,115,51,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { max-width: var(--max); margin: 0 auto; }
.page-hero h1 { max-width: 700px; margin-bottom: 20px; }
.page-hero p { max-width: 560px; font-size: 1.05rem; }

/* ── Fade-in animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 24px; }
  .page-hero { padding: 80px 24px 60px; }
  footer { padding: 48px 24px 32px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-inner { padding: 0 20px; }
  .mobile-menu { padding: 24px 20px 32px; }
}
