/* ============================================
   Winfred Arthur, Jr. Consulting
   Institutional Editorial Design System
   ============================================ */

/* --- Google Fonts loaded in HTML --- */

:root {
  --navy: #0c1f3f;
  --navy-light: #1a3260;
  --navy-muted: #2a4573;
  --gold: #b8943e;
  --gold-light: #d4af5c;
  --gold-pale: #f5edd6;
  --cream: #faf8f4;
  --cream-dark: #f0ece4;
  --warm-gray: #6b6560;
  --text: #2c2825;
  --text-light: #5a5550;
  --text-muted: #8a8580;
  --border: #e0dbd4;
  --border-light: #ede9e3;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(12,31,63,0.06);
  --shadow-md: 0 4px 16px rgba(12,31,63,0.08);
  --shadow-lg: 0 8px 32px rgba(12,31,63,0.1);
  --radius: 2px;
  --container: 1120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Source Serif 4', 'Georgia', serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  font-size: 1.0125rem;
}

/* --- Layout --- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--white);
}

.section--navy {
  background: var(--navy);
  color: var(--cream);
}

.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--gold-light);
}

.section--navy a {
  color: var(--gold-light);
}

.section--navy a:hover {
  color: var(--gold-pale);
}

/* --- Decorative Elements --- */

.geo-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 1.25rem 0 1.5rem;
}

.geo-line--center {
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section--navy .section-label {
  color: var(--gold-light);
}

/* --- Top Bar --- */

.topbar {
  background: var(--navy);
  padding: 0.5rem 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar a {
  color: var(--gold-light);
  font-weight: 500;
}

.topbar a:hover {
  color: var(--gold-pale);
}

.topbar__contact {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* --- Header / Navigation --- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  min-height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: auto;
}

.logo__text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.logo__text span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav__list {
  display: flex;
  list-style: none;
  gap: 0;
}

.main-nav__list a {
  display: block;
  padding: 1.5rem 1.25rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.main-nav__list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav__list a:hover,
.main-nav__list a.active {
  color: var(--navy);
}

.main-nav__list a:hover::after,
.main-nav__list a.active::after {
  width: calc(100% - 2.5rem);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
  border-radius: 1px;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */

.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(184,148,62,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(26,50,96,0.4) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(184,148,62,0.03) 40px,
    rgba(184,148,62,0.03) 41px
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,148,62,0.3);
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
  background: rgba(184,148,62,0.05);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero__tagline {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.hero__line {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2rem;
}

/* --- Page Header (inner pages) --- */

.page-header {
  background: var(--navy);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(184,148,62,0.025) 40px,
    rgba(184,148,62,0.025) 41px
  );
}

.page-header__content {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 600px;
}

.page-header .geo-line {
  background: var(--gold);
  margin-top: 0.75rem;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,148,62,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--navy {
  background: var(--navy);
  color: var(--white);
}

.btn--navy:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* --- Cards --- */

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card:hover::before {
  width: 100%;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gold);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.925rem;
  color: var(--text-light);
  margin: 0;
}

/* --- Services Grid --- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* --- Two Column Layout --- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* --- Service Detail Block --- */

.service-block {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block h3 {
  margin-bottom: 0.75rem;
}

.service-block p {
  color: var(--text-light);
}

.service-block ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.service-block ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.service-block ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}

/* --- People / Team --- */

.person-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
}

.person-card__header {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.person-card__avatar {
  width: 100px;
  height: 100px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.person-card__meta {
  flex: 1;
  min-width: 200px;
}

.person-card__meta h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.person-card__role {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.person-card__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.person-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy-muted);
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.person-card__links a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.person-card__bio {
  line-height: 1.8;
  color: var(--text);
}

.person-card__bio p {
  font-size: 0.975rem;
}

/* --- Publications --- */

.pub-list {
  list-style: none;
}

.pub-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
}

.pub-item:last-child {
  border-bottom: none;
}

.pub-item b,
.pub-item strong {
  color: var(--navy);
}

.pub-item i,
.pub-item em {
  color: var(--text);
}

.pub-item a {
  color: var(--navy-muted);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.pub-item a:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.pub-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* --- Client List --- */

.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.client-item {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.client-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.client-item__marker {
  width: 8px;
  height: 8px;
  background: var(--gold);
  flex-shrink: 0;
}

.client-item__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
}

.client-item__location {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* --- Contact --- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method__icon {
  width: 40px;
  height: 40px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
}

.contact-method__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-method__value {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-method__value a {
  color: var(--navy);
}

.contact-method__value a:hover {
  color: var(--gold);
}

/* --- Footer --- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
}

.footer-main {
  padding: 3.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  padding: 1.5rem 0;
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- Stats Row --- */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.stat__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  display: block;
}

/* --- CTA Section --- */

.cta-section {
  background: var(--navy);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,148,62,0.06) 0%, transparent 70%);
}

.cta-section > * {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* --- Scroll to Top --- */

.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 90;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--gold);
  color: var(--navy);
}

.scroll-top svg {
  width: 18px;
  height: 18px;
}

/* --- Animations --- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* --- Responsive --- */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav__list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .main-nav__list.open {
    transform: translateX(0);
  }

  .main-nav__list a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
  }

  .main-nav__list a::after {
    display: none;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .client-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom__inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .topbar__contact {
    display: none;
  }

  .person-card {
    padding: 1.75rem;
  }

  .person-card__header {
    gap: 1.25rem;
  }

  .person-card__avatar {
    width: 72px;
    height: 72px;
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .logo__text {
    font-size: 1rem;
  }

  .logo__text span {
    display: none;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.775rem;
  }
}
