/* ============================================================
   LAWGICAL – Shared Stylesheet
   Fonts loaded in HTML: Playfair Display, Cormorant Garamond, Montserrat
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy:      #0d1b2e;
  --navy-mid:  #122033;
  --navy-light:#1a2e45;
  --gold:      #c9a84c;
  --gold-light:#e2c06c;
  --offwhite:  #f8f5ef;
  --text-dark: #1a1a2e;
  --text-mid:  #4b5563;
  --text-light:#9ca3af;
}

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

body {
  margin: 0;
  background-color: var(--offwhite);
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  margin: 0;
}

p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; }

/* ---------- Utility: Section Label ---------- */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- Utility: Gold Rule ---------- */
.gold-rule {
  width: 3rem;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.gold-rule--center {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Utility: Fade-in Animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Button: Primary ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.875rem 1.875rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, gap 0.2s ease;
}

.btn-primary:hover {
  background: var(--gold-light);
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

@media (min-width: 768px) {
  .nav-inner { height: 5.5rem; }
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo svg {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-logo svg { width: 3.5rem; height: 3.5rem; }
}

.nav-logo img {
  height: 18rem;
  width: auto;
  max-width: 500px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-logo img {
    height: 20rem;
    max-width: 580px;
  }
}

.nav-logo-wordmark h1 {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 3px;
}

@media (min-width: 768px) {
  .nav-logo-wordmark h1 { font-size: 1.75rem; }
}

.nav-logo-wordmark p {
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 1px;
}

/* Desktop links */
.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-links li a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--gold);
}

.nav-links li a.active {
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

/* Mobile menu */
.nav-mobile {
  position: fixed;
  top: 5rem;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  z-index: 49;
}

.nav-mobile.open {
  display: flex;
  max-height: 30rem;
}

.nav-mobile li {
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}

.nav-mobile li:last-child {
  border-bottom: none;
}

.nav-mobile li a {
  display: block;
  padding: 0.9rem 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}

.nav-mobile li a:hover,
.nav-mobile li a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer {
  background: #070e18;
  color: var(--text-light);
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; }
}

.footer-brand p {
  font-size: 0.825rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 22rem;
  color: rgba(255,255,255,0.45);
}

.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links li a {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links li a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}

.footer-contact li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(201, 168, 76, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.2s, border-color 0.2s;
}

.footer-social-btn:hover {
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ---------- Scroll-to-top button ---------- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
  border-radius: 2px;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
