/* shared.css - reset, variables, nav, footer, and button styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --deep-navy:        #1e2d3d;
  --warm-copper:      #c17b40;
  --copper-hover:     #a8682e;
  --copper-active:    #8f5726;
  --warm-white:       #faf9f7;
  --white:            #ffffff;
  --near-black:       #1a1a1a;
  --mid-grey:         #5a5a5a;
  --warm-grey:        #8a8a8a;
  --light-warm-grey:  #e0ddd9;
  --max-width:        1100px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Inter, 'Helvetica Neue', Arial, system-ui, -apple-system, sans-serif;
  background: var(--warm-white);
  color: var(--near-black);
  line-height: 1.6;
}

a {
  color: var(--warm-copper);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Layout container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:focus-visible {
  outline: 2px solid var(--warm-copper);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--warm-copper);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  min-height: 48px;
  min-width: 160px;
}
.btn-primary:hover {
  background: var(--copper-hover);
  color: var(--white);
  text-decoration: none;
}
.btn-primary:active { background: var(--copper-active); }
.btn-primary.full { width: 100%; }

.btn-secondary {
  background: transparent;
  color: var(--deep-navy);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  min-height: 44px;
  border: 1.5px solid var(--deep-navy);
}
.btn-secondary:hover {
  background: var(--deep-navy);
  color: var(--white);
  text-decoration: none;
}

.btn-copper-inv {
  background: var(--warm-copper);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  min-height: 48px;
  min-width: 200px;
}
.btn-copper-inv:hover {
  background: var(--copper-hover);
  color: var(--white);
  text-decoration: none;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled {
  border-color: var(--light-warm-grey);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
@media (min-width: 640px)  { .nav-inner { padding: 16px 32px; } }
@media (min-width: 1024px) {
  .nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 48px;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 28px;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .nav-logo { height: 32px; } }
.nav-logo svg { height: 100%; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  color: var(--near-black);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--deep-navy); }

.nav-cta-desktop { display: none; }
@media (min-width: 1024px) { .nav-cta-desktop { display: inline-flex; } }

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) { .nav-hamburger { display: none; } }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--deep-navy);
  border-radius: 2px;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--deep-navy);
  z-index: 200;
  flex-direction: column;
  padding: 20px 24px 48px;
}
.nav-overlay.open { display: flex; }

.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.nav-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nav-overlay-links a {
  color: white;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-overlay-links a:last-child { border-bottom: none; }

.nav-overlay-bottom {
  margin-top: auto;
  padding-top: 32px;
}

/* Footer */
.footer {
  background: var(--deep-navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 48px;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  height: 28px;
  margin-bottom: 12px;
}
.footer-logo svg { height: 100%; width: auto; }

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-contact p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.footer-contact a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--white); }

.footer-legal-links {
  margin-top: 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-legal-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.footer-legal-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
